trellis-start
Initializes an AI development session by reading workflow guides, developer identity, git status, active tasks, and project guidelines from .trellis/. Classifies incoming tasks and routes to brainstorm, direct edit, or task workflow. Use when beginning a new coding session, resuming work, starting a new task, or re-establishing project context.
git clone --depth 1 https://github.com/fy-agent/fyagent /tmp/trellis-start && cp -r /tmp/trellis-start/.agents/skills/trellis-start ~/.claude/skills/trellis-startSKILL.md
# Start Session Initialize a Trellis-managed development session. This platform has no session-start hook, so manually load the equivalent compact context by following these steps. --- ## Step 1: Current state Identity, git status, current task, active tasks, journal location. ```bash python ./.trellis/scripts/get_context.py ``` If this output includes a line beginning `Trellis update available:`, copy the full line verbatim when summarizing session context. Do not shorten operational command hints. ## Step 2: Workflow overview Compact Phase Index, request triage rules, planning artifact contract, and the step-detail command. ```bash python ./.trellis/scripts/get_context.py --mode phase ``` Full guide in `.trellis/workflow.md` (read on demand). ## Step 3: Guideline indexes Discover packages + spec layers, then read each relevant index file. ```bash python ./.trellis/scripts/get_context.py --mode packages cat .trellis/spec/guides/index.md cat .trellis/spec/<package>/<layer>/index.md # for each relevant layer ``` Index files list the specific guideline docs to read when you actually start coding. ## Step 4: Decide next action From Step 1 you know the current task and status. Check the task directory: - **Active task status `planning` + no `prd.md`** → Phase 1.1. Load the `trellis-brainstorm` skill. - **Active task status `planning` + `prd.md` exists** → stay in Phase 1. Lightweight tasks can be PRD-only; complex tasks need `design.md` + `implement.md`. Load the relevant Phase 1 step detail before `task.py start`. - **Active task status `in_progress`** → Phase 2 step 2.1. Load the step detail: ```bash python ./.trellis/scripts/get_context.py --mode phase --step 2.1 --platform codex ``` - **No active task** → classify first. For simple conversation / small task, ask only whether this turn should create a Trellis task. For complex work, ask whether you may create a Trellis task and enter planning. If the user says no, skip Trellis for this session. --- ## Skill routing (quick reference) | User intent | Skill | |---|---| | New feature / unclear requirements | `trellis-brainstorm` | | About to write code | `trellis-before-dev` | | Done coding / quality check | `trellis-check` | | Stuck / fixed same bug multiple times | `trellis-break-loop` | | Learned something worth capturing | `trellis-update-spec` | Full rules + anti-rationalization table in `.trellis/workflow.md`.
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.