agentleFS
robmclartyrobmclarty/trellis/skills/guidelines/SKILL.md

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.

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
  1. Very specific:

    Create or update the project guidelines document at .specs/guidelines.md.

    line 15
  2. Very specific:

    Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/validate-prereqs.py guidelines and use the specsDir value from the JSON output.

    line 21
  3. Very specific:

    If .specs/guidelines.md does not exist, this is a fresh project.

    line 29
  4. Distinctive:

    If the user provides a description or the project already has code, infer what you can and confirm with them.

    line 38
  5. Very specific:

    If .specs/guidelines.md already exists, read it first.

    line 42
  6. Very specific:

    After gathering all user input via the interview, spawn the guideliner agent.

    line 49

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

  1. What is the tech stack? (language, runtime, framework, core libraries)
  2. What architectural style do they prefer? (functional, OOP, procedural, hybrid)
  3. Any hard conventions? (naming, file layout, error handling patterns)
  4. What's the testing philosophy? (when to test, what to skip, coverage attitude, framework, file location pattern, naming convention)
  5. Deployment and infrastructure constraints?
  6. 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, or ruff 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:

  1. What changed? (new library, dropped dependency, revised convention, infrastructure shift)
  2. 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.)

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.