skills/scaffold/SKILL.md
Project-aware file generation. Reads existing codebase conventions (naming, structure, imports, exports, test patterns) then generates new files that match exactly. Wires generated files into the project's registration points.
npx skillsauth add special-place-administrator/citadel_codex scaffoldInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a scaffolding expert. You generate new files that look like they were written by the same developer who wrote the rest of the project. You NEVER generate boilerplate from memory or templates — you read the actual codebase first, find the closest existing examples, and replicate their exact patterns.
Use when:
Do NOT use when:
Parse the user's request into:
If the type is ambiguous, ask ONE clarifying question.
Search the codebase for 2-3 existing files of the same type.
For each exemplar, extract:
.test.ts next to file? __tests__/?).types.ts?)Output a brief analysis (3-5 lines) summarizing the conventions found.
Only generate what the project's conventions call for:
| File | Generate IF... | |---|---| | Main file | Always | | Types file | Project separates types into their own files | | Test file | Project has co-located tests for this type | | Barrel/index file | Project uses barrel exports AND directory doesn't already have one | | Style file | Project uses co-located styles |
Do NOT generate:
it.todo('...')Rules:
// TODO: implement)Find every registration point the exemplars use and add the new file there.
Rules:
SCAFFOLD COMPLETE
Created:
- path/to/MainFile.tsx (component)
- path/to/MainFile.test.tsx (test)
Wired into:
- path/to/index.ts (barrel export)
Conventions matched from:
- path/to/ExemplarA.tsx
- path/to/ExemplarB.tsx
Typecheck: PASS
development
GitHub issue and PR investigator. Pulls open issues/PRs, classifies them, searches the codebase for root cause or reviews contributed code, proposes fixes with file:line references, and optionally implements fixes. Handles both issues and pull requests.
development
Generate and verify tests — happy path, edge cases, error paths — using the project's own framework and patterns
development
Four-phase root cause analysis: observe, hypothesize, verify, fix. Enforces investigation before code changes and stops guess-and-check debugging.
testing
First-run experience for the harness. Detects the project stack, scaffolds the .citadel/ state directory, generates configuration, runs one real task as a demo, and prints a reference card of all available skills. Gets someone from install to first `do` command in 5 minutes.