trellis-spec-bootstrap
Bootstrap project-specific Trellis coding specs with a platform-neutral single-agent workflow. Use when creating or refreshing .trellis/spec guidelines, analyzing a codebase with GitNexus, ABCoder, or source inspection, decomposing package/layer spec work, and writing real codebase-backed spec docs without placeholder text.
git clone --depth 1 https://github.com/fy-agent/fyagent /tmp/trellis-spec-bootstrap && cp -r /tmp/trellis-spec-bootstrap/.cursor/skills/trellis-spec-bootstrap ~/.claude/skills/trellis-spec-bootstrapSKILL.md
# Trellis Spec Bootstrap Use this skill to create or refresh `.trellis/spec/` guidelines from the real codebase. One capable agent owns the full loop: analyze the repository, choose the spec boundaries, write the docs, and verify the result. The workflow does not depend on a specific host, CLI, or agent brand. ## Workflow 1. Confirm Trellis is initialized and inspect the current `.trellis/spec/` tree. 2. Analyze the repository architecture with the best available tools: GitNexus, ABCoder, language tooling, and direct source reads. 3. Decompose the spec work by package and layer only when that reflects the actual codebase. 4. Fill or reshape the spec files with concrete patterns, file paths, examples, and anti-patterns from the project. 5. Verify that the final specs are internally consistent and contain no template placeholders. ## Reference Routing | Need | Read | |------|------| | Repository architecture analysis | [references/repository-analysis.md](references/repository-analysis.md) | | Spec work decomposition and task planning | [references/spec-task-planning.md](references/spec-task-planning.md) | | Writing high-signal Trellis spec files | [references/spec-writing.md](references/spec-writing.md) | | GitNexus and ABCoder MCP setup | [references/mcp-setup.md](references/mcp-setup.md) | ## Operating Rules - Treat templates as starting points, not contracts. Delete, rename, split, or add spec files when the repository calls for it. - Prefer source-backed rules over generic advice. Every important recommendation should point at a real file or repeated local pattern. - Keep execution single-owner by default. Optional helper agents are an implementation detail, not a requirement or user-visible dependency. - Do not write platform-specific instructions unless the target project already standardizes on that platform. - Do not leave placeholder text, empty headings, or copied boilerplate in `.trellis/spec/`. ## Done Criteria - `.trellis/spec/` describes the project as it exists now. - Each relevant package or layer has practical coding guidance with real examples. - Non-applicable template sections are removed. - `index.md` files match the final spec file set. - Any required setup or analysis assumptions are documented in the relevant spec or task notes.
Discovers and injects project-specific coding guidelines from .trellis/spec/ before implementation begins. Reads spec indexes, pre-development checklists, and shared thinking guides for the target package. Use when starting a new coding task, before writing any code, switching to a different package, or needing to refresh project conventions and standards.
Guides collaborative requirements discovery before implementation. Creates task directory, seeds PRD, asks high-value questions one at a time, researches technical choices, and converges on MVP scope. Use when requirements are unclear, there are multiple valid approaches, or the user describes a new feature or complex task.
Deep bug analysis to break the fix-forget-repeat cycle. Analyzes root cause category, why fixes failed, prevention mechanisms, and captures knowledge into specs. Use after fixing a bug to prevent the same class of bugs.
Use Trellis channel for live multi-agent collaboration, spawned workers, cross-agent review, progress inspection, forum channels, and channel log debugging.
Comprehensive quality verification: spec compliance, lint, type-check, tests, cross-layer data flow, code reuse, and consistency checks. Use when code is written and needs quality verification, before committing changes, or to catch context drift during long sessions.
Resume work on the current task. Loads the workflow Phase Index, figures out which phase/step to pick up at, then pulls the step-level detail via get_context.py --mode phase. Use when coming back to an in-progress task and you need to know what to do next.
Wrap up the current session: verify quality gate passed, remind user to commit, archive completed tasks, and record session progress to the developer journal. Use when done coding and ready to end the session.
Understand and customize the local Trellis architecture inside a user project. Use when modifying .trellis plus platform hooks, settings, agents, skills, commands, prompts, workflows, the channel runtime (trellis channel), bundled runtime agents under .trellis/agents/, selectable workflow templates, registry-backed spec refresh, cross-session memory (trellis mem) generated by trellis init, or AI-facing bundled skills (trellis-channel, trellis-session-insight, trellis-spec-bootstrap) and bundled-skill auto-dispatch flow.