From context-king
List files in a folder with their signatures, filtered by an optional regex pattern. Use this in fallback folder-scoped exploration after ck find-files.
How this skill is triggered — by the user, by Claude, or both
Slash command
/context-king:ck-expand-folderThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Expands a folder into a per-file signature list, optionally filtered by a regex pattern.
Expands a folder into a per-file signature list, optionally filtered by a regex pattern.
Use this in the fallback scope path after ck find-files when the area is still uncharted.
It shows which files contain relevant members without dumping everything.
ck find-files, and want to narrow it down to relevant files.ck signatures would return too much to scan.ck signatures <file> or ck get-method-source directly.ck signatures <folder>.ck expand-folder [--pattern <regex>] [--limit <n>] [--offset <n>] [--max-signatures <n>] [--all] <folder>
| Option | Default | Description |
|---|---|---|
--pattern <regex> | show all for small folders only | Case-insensitive regex matched against containingType, memberName, and signature text. Files with zero matches are excluded from output. Broad matches are refused with keyword hints. Use 2-4 high-signal terms, not a single generic word. |
--limit <n> | 20 | Page size for matched files (max 50). |
--offset <n> | 0 | Page offset into ranked matched files. |
--max-signatures <n> | 25 | Max signatures printed per file (0 = unlimited). |
--all | off | Allow broad output intentionally. Do not use this as a workaround for an imprecise pattern. |
If the command says Pattern is too broad, do not pipe or truncate the output. Rerun with more precision using the printed add-keyword-hints, for example provider + workflow + DTO/type/member words.
If you already reached a concrete file in this direction, do not go back to expand-folder. Continue with ck signatures <file> and ck get-method-source <file> <MemberName>. If direction changed, run a new find-files first.
Budget rule: use at most 3 expand-folder calls per direction. After that, either move to targeted file reads or re-scope.
<file-path>
<line> <containingType> <memberName> <signature>
<file-path>
<line> <containingType> <memberName> <signature>
One block per file. Files with no matching signatures are omitted entirely. Pagination metadata is printed to stderr:
[ck expand-folder] pagination: offset=<n> limit=<n> returned=<n> total_estimate=<n> has_more=<true|false> [next_offset=<n>]
# All signatures grouped by file (small folders only)
ck expand-folder src/Modules/Payment/Adyen/
# Filter to members mentioning "Refund"
ck expand-folder --pattern "Refund" src/Modules/Payment/Adyen/
# Filter to async methods
ck expand-folder --pattern "async Task" src/Modules/Payment/
# Filter to interface definitions
ck expand-folder --pattern "^I[A-Z]" src/Modules/Payment/Adyen/
0. ck find-files --query "..." --task "..." → primary file-level entrypoint
1. If needed, fallback: ck get-keyword-map + ck find-files → folders = source of truth
2. ck expand-folder --pattern "<2-4 precise keywords>" <folder> → see which files and members match
3. ck get-method-source <file> <MemberName> → read the method body
npx claudepluginhub jnv/claude-code-plugins --plugin context-kingCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.