detect-local-content-folder

star 53

Finds the local folder for a given content kind and name. Use before pulling or pushing content to determine the correct local directory.

iximiuz By iximiuz schedule Updated 2/16/2026

name: detect-local-content-folder description: Finds the local folder for a given content kind and name. Use before pulling or pushing content to determine the correct local directory. argument-hint: user-invocable: false allowed-tools: Glob

Find the local folder for content of kind $0 with name $1.

Rules

  1. The local folder is always inside the pluralized kind subdirectory of the project root:

    • challenge -> challenges/
    • tutorial -> tutorials/
    • course -> courses/
    • skill-path -> skill-paths/
  2. The folder either:

    • Matches the name exactly: <kind-plural>/$1/
    • Or matches the pattern <kind-plural>/$1-<short-hex-suffix>/ (e.g., challenges/docker-101-6e812f1f/)

Steps

  1. Use Glob to search for $0s/$1/index.md (exact match).
  2. If not found, use Glob to search for $0s/$1-*/index.md (suffix match).
  3. If a match is found, return the folder path (without the index.md part).
  4. If no match is found, report that no local folder was detected.
Install via CLI
npx skills add https://github.com/iximiuz/labs --skill detect-local-content-folder
Repository Details
star Stars 53
call_split Forks 15
navigation Branch main
article Path SKILL.md
More from Creator