agentleFS
phobenphoben/agent-skills/.agents/skills/trellis-before-dev/SKILL.md

trellis-before-dev

Skill0 starsChanged 9 days agoMITView on GitHub

在实现前读取并注入 .trellis/spec/ 中的项目编码规范,包括目标包的规范索引、开发前检查项及思考指南;适用于开始编码、切换包或刷新项目约定时。

21 other projects use a version of this, 21 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 2 are common, 2 are distinctive, and 0 are very specific to this project.

  • 2

    Common

    Most of the 21 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Common:

    Read the relevant development guidelines before starting your task.

    line 6
  2. Common:

    Follow the "Pre-Development Checklist" section in the index.

    line 29
  3. Distinctive:

    if a local refactor is needed, how you will show it did not change behavior

    line 43
  4. Distinctive:

    If the real scope turns out to be clearly larger than this, say so and why before continuing.

    line 47

“Common” is measured: kept by at least 6 in 10 of the 21 edited versions of this file we could read. “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

Read the relevant development guidelines before starting your task.

Execute these steps:

  1. Read current task artifacts:
    • prd.md for requirements and acceptance criteria
    • design.md if present for technical design
    • implement.md if present for execution order and validation plan
  2. Discover packages and their spec layers:
    python ./.trellis/scripts/get_context.py --mode packages
  3. Identify which specs apply to your task based on:
    • Which package you're modifying (e.g., cli/, docs-site/)
    • What type of work (backend, frontend, unit-test, docs, etc.)
    • Any spec/research paths referenced by the task artifacts
  4. Read the spec index for each relevant module:
    cat .trellis/spec/<package>/<layer>/index.md
    Follow the "Pre-Development Checklist" section in the index.
  5. Read the specific guideline files listed in the Pre-Development Checklist that are relevant to your task. The index is NOT the goal — it points you to the actual guideline files (e.g., error-handling.md, conventions.md, mock-strategies.md). Read those files to understand the coding standards and patterns.
  6. Always read shared guides:
    cat .trellis/spec/guides/index.md
  7. For a non-trivial task, state the change boundary before writing code. Non-trivial means it touches more than one file, crosses a layer, changes a public interface, or edits code you did not just write. Write down:

    • the smallest behavior gap between what happens now and what should happen
    • where that behavior actually lives (not where it is easiest to intercept)
    • which files you expect to change, and why each one is necessary
    • what you are explicitly not doing in this task
    • if a local refactor is needed, how you will show it did not change behavior

    A small, well-scoped change does not need this — do it directly.

    If the real scope turns out to be clearly larger than this, say so and why before continuing. Do not widen the change on your own.

  8. Understand the coding standards and patterns you need to follow, then proceed with your development plan.

This step is mandatory before writing any code.

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.