trellis:guidelines
Skill2 starsChanged 9 months agoMITView on GitHub
Creates or updates .specs/guidelines.md with project-wide stack, conventions, and principles. Use when starting a project or when a fundamental technology decision has changed.
In this repository18 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- checkSkill
- lintSkill
- testSkill
- versionSkill
- trellis:buildSkill
- build-with-subagentsSkill
- build-with-batchSkill
- trellis:clarifySkill
- trellis:complianceSkill
- trellis:initSkill
- trellis:pitchSkill
- trellis:planSkill
- trellis:prepSkill
- trellis:runSkill
- trellis:sketchSkill
- trellis:specSkill
- trellis:statusSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Create or update the project guidelines document at .specs/guidelines.md.
- Very specific: line 21
Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/validate-prereqs.py guidelines and use the specsDir value from the JSON output.
- Very specific: line 29
If .specs/guidelines.md does not exist, this is a fresh project.
- Distinctive: line 38
If the user provides a description or the project already has code, infer what you can and confirm with them.
- Very specific: line 42
If .specs/guidelines.md already exists, read it first.
- Very specific: line 49
After gathering all user input via the interview, spawn the guideliner agent.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Guidelines
When to use
- "set up guidelines", "update guidelines"
- "change our stack", "add a convention"
- Any request to establish or modify project-wide principles
Create or update the project guidelines document at .specs/guidelines.md.
Recommended effort: medium. Interview-driven with structured generation into a fixed section template.
Pre-flight
Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/validate-prereqs.py guidelines and use the specsDir value from the JSON output. Abort if the output reports missing prerequisites.
Modes
This skill operates in two modes depending on whether .specs/guidelines.md already exists.
Create mode (no existing guidelines)
If .specs/guidelines.md does not exist, this is a fresh project. Ask the user:
- What is the tech stack? (language, runtime, framework, core libraries)
- What architectural style do they prefer? (functional, OOP, procedural, hybrid)
- Any hard conventions? (naming, file layout, error handling patterns)
- What's the testing philosophy? (when to test, what to skip, coverage attitude, framework, file location pattern, naming convention)
- Deployment and infrastructure constraints?
- What is the check command? This is the full CLI command chain that must pass for code to be considered correct — it runs after every implementation task. (e.g.,
npm run lint && npm run typecheck && npm run build && npm run test, orruff check . && mypy . && pytest)
If the user provides a description or the project already has code, infer what you can and confirm with them.
Update mode (existing guidelines)
If .specs/guidelines.md already exists, read it first. Then ask the user:
- What changed? (new library, dropped dependency, revised convention, infrastructure shift)
- Why? (one sentence is fine; this helps evaluate downstream impact)
Generation
After gathering all user input via the interview, spawn the guideliner agent. Pass it: the specs directory path and all interview responses. The agent will generate the guidelines document.
Quality gate
- Could a new developer read this and write code that matches the project's style?
- Are there concrete examples (not just rules) for every convention?
- Is every stack decision specific (named packages, not categories)?
- Does it avoid feature-specific content? (That belongs in specs, not guidelines.)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

