@jahanxu/trellis 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +235 -0
- package/README.md +212 -0
- package/bin/trellis.js +3 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +97 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/commands/init.d.ts +21 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +527 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/update.d.ts +27 -0
- package/dist/commands/update.d.ts.map +1 -0
- package/dist/commands/update.js +1289 -0
- package/dist/commands/update.js.map +1 -0
- package/dist/configurators/antigravity.d.ts +8 -0
- package/dist/configurators/antigravity.d.ts.map +1 -0
- package/dist/configurators/antigravity.js +18 -0
- package/dist/configurators/antigravity.js.map +1 -0
- package/dist/configurators/claude.d.ts +32 -0
- package/dist/configurators/claude.d.ts.map +1 -0
- package/dist/configurators/claude.js +98 -0
- package/dist/configurators/claude.js.map +1 -0
- package/dist/configurators/codex.d.ts +8 -0
- package/dist/configurators/codex.d.ts.map +1 -0
- package/dist/configurators/codex.js +20 -0
- package/dist/configurators/codex.js.map +1 -0
- package/dist/configurators/cursor.d.ts +5 -0
- package/dist/configurators/cursor.d.ts.map +1 -0
- package/dist/configurators/cursor.js +52 -0
- package/dist/configurators/cursor.js.map +1 -0
- package/dist/configurators/gemini.d.ts +8 -0
- package/dist/configurators/gemini.d.ts.map +1 -0
- package/dist/configurators/gemini.js +52 -0
- package/dist/configurators/gemini.js.map +1 -0
- package/dist/configurators/iflow.d.ts +33 -0
- package/dist/configurators/iflow.d.ts.map +1 -0
- package/dist/configurators/iflow.js +99 -0
- package/dist/configurators/iflow.js.map +1 -0
- package/dist/configurators/index.d.ts +55 -0
- package/dist/configurators/index.d.ts.map +1 -0
- package/dist/configurators/index.js +220 -0
- package/dist/configurators/index.js.map +1 -0
- package/dist/configurators/kilo.d.ts +8 -0
- package/dist/configurators/kilo.d.ts.map +1 -0
- package/dist/configurators/kilo.js +51 -0
- package/dist/configurators/kilo.js.map +1 -0
- package/dist/configurators/kiro.d.ts +8 -0
- package/dist/configurators/kiro.d.ts.map +1 -0
- package/dist/configurators/kiro.js +20 -0
- package/dist/configurators/kiro.js.map +1 -0
- package/dist/configurators/opencode.d.ts +32 -0
- package/dist/configurators/opencode.d.ts.map +1 -0
- package/dist/configurators/opencode.js +92 -0
- package/dist/configurators/opencode.js.map +1 -0
- package/dist/configurators/shared.d.ts +12 -0
- package/dist/configurators/shared.d.ts.map +1 -0
- package/dist/configurators/shared.js +21 -0
- package/dist/configurators/shared.js.map +1 -0
- package/dist/configurators/workflow.d.ts +28 -0
- package/dist/configurators/workflow.d.ts.map +1 -0
- package/dist/configurators/workflow.js +134 -0
- package/dist/configurators/workflow.js.map +1 -0
- package/dist/constants/paths.d.ts +68 -0
- package/dist/constants/paths.d.ts.map +1 -0
- package/dist/constants/paths.js +77 -0
- package/dist/constants/paths.js.map +1 -0
- package/dist/constants/version.d.ts +9 -0
- package/dist/constants/version.d.ts.map +1 -0
- package/dist/constants/version.js +15 -0
- package/dist/constants/version.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/migrations/index.d.ts +54 -0
- package/dist/migrations/index.d.ts.map +1 -0
- package/dist/migrations/index.js +160 -0
- package/dist/migrations/index.js.map +1 -0
- package/dist/migrations/manifests/0.1.9.json +30 -0
- package/dist/migrations/manifests/0.2.0.json +49 -0
- package/dist/migrations/manifests/0.2.12.json +9 -0
- package/dist/migrations/manifests/0.2.13.json +9 -0
- package/dist/migrations/manifests/0.2.14.json +175 -0
- package/dist/migrations/manifests/0.2.15.json +33 -0
- package/dist/migrations/manifests/0.3.0-beta.0.json +278 -0
- package/dist/migrations/manifests/0.3.0-beta.1.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.10.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.11.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.12.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.13.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.14.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.15.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.16.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.2.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.3.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.4.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.5.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.6.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.7.json +11 -0
- package/dist/migrations/manifests/0.3.0-beta.8.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.9.json +9 -0
- package/dist/migrations/manifests/0.3.0-rc.0.json +9 -0
- package/dist/migrations/manifests/0.3.0-rc.1.json +9 -0
- package/dist/migrations/manifests/0.3.0-rc.2.json +9 -0
- package/dist/migrations/manifests/0.3.0-rc.3.json +9 -0
- package/dist/migrations/manifests/0.3.0-rc.4.json +9 -0
- package/dist/migrations/manifests/0.3.0-rc.5.json +9 -0
- package/dist/migrations/manifests/0.3.0-rc.6.json +9 -0
- package/dist/migrations/manifests/0.3.0.json +11 -0
- package/dist/templates/antigravity/index.d.ts +12 -0
- package/dist/templates/antigravity/index.d.ts.map +1 -0
- package/dist/templates/antigravity/index.js +29 -0
- package/dist/templates/antigravity/index.js.map +1 -0
- package/dist/templates/claude/agents/check.md +122 -0
- package/dist/templates/claude/agents/debug.md +106 -0
- package/dist/templates/claude/agents/dispatch.md +214 -0
- package/dist/templates/claude/agents/implement.md +96 -0
- package/dist/templates/claude/agents/plan.md +396 -0
- package/dist/templates/claude/agents/research.md +120 -0
- package/dist/templates/claude/commands/trellis/before-backend-dev.md +13 -0
- package/dist/templates/claude/commands/trellis/before-frontend-dev.md +13 -0
- package/dist/templates/claude/commands/trellis/before-role-work.md +364 -0
- package/dist/templates/claude/commands/trellis/brainstorm.md +474 -0
- package/dist/templates/claude/commands/trellis/break-loop.md +125 -0
- package/dist/templates/claude/commands/trellis/check-backend.md +13 -0
- package/dist/templates/claude/commands/trellis/check-cross-layer.md +153 -0
- package/dist/templates/claude/commands/trellis/check-frontend.md +13 -0
- package/dist/templates/claude/commands/trellis/create-command.md +154 -0
- package/dist/templates/claude/commands/trellis/finish-work.md +153 -0
- package/dist/templates/claude/commands/trellis/handoff.md +445 -0
- package/dist/templates/claude/commands/trellis/integrate-skill.md +219 -0
- package/dist/templates/claude/commands/trellis/onboard.md +358 -0
- package/dist/templates/claude/commands/trellis/parallel.md +193 -0
- package/dist/templates/claude/commands/trellis/pick-task.md +515 -0
- package/dist/templates/claude/commands/trellis/record-session.md +62 -0
- package/dist/templates/claude/commands/trellis/start.md +373 -0
- package/dist/templates/claude/commands/trellis/update-spec.md +354 -0
- package/dist/templates/claude/hooks/inject-subagent-context.py +873 -0
- package/dist/templates/claude/hooks/ralph-loop.py +388 -0
- package/dist/templates/claude/hooks/session-start.py +200 -0
- package/dist/templates/claude/index.d.ts +54 -0
- package/dist/templates/claude/index.d.ts.map +1 -0
- package/dist/templates/claude/index.js +85 -0
- package/dist/templates/claude/index.js.map +1 -0
- package/dist/templates/claude/settings.json +41 -0
- package/dist/templates/codex/index.d.ts +18 -0
- package/dist/templates/codex/index.d.ts.map +1 -0
- package/dist/templates/codex/index.js +40 -0
- package/dist/templates/codex/index.js.map +1 -0
- package/dist/templates/codex/skills/before-backend-dev/SKILL.md +18 -0
- package/dist/templates/codex/skills/before-frontend-dev/SKILL.md +18 -0
- package/dist/templates/codex/skills/brainstorm/SKILL.md +479 -0
- package/dist/templates/codex/skills/break-loop/SKILL.md +130 -0
- package/dist/templates/codex/skills/check-backend/SKILL.md +18 -0
- package/dist/templates/codex/skills/check-cross-layer/SKILL.md +158 -0
- package/dist/templates/codex/skills/check-frontend/SKILL.md +18 -0
- package/dist/templates/codex/skills/create-command/SKILL.md +101 -0
- package/dist/templates/codex/skills/finish-work/SKILL.md +148 -0
- package/dist/templates/codex/skills/integrate-skill/SKILL.md +221 -0
- package/dist/templates/codex/skills/onboard/SKILL.md +363 -0
- package/dist/templates/codex/skills/record-session/SKILL.md +67 -0
- package/dist/templates/codex/skills/start/SKILL.md +330 -0
- package/dist/templates/codex/skills/update-spec/SKILL.md +335 -0
- package/dist/templates/cursor/commands/trellis-before-backend-dev.md +13 -0
- package/dist/templates/cursor/commands/trellis-before-frontend-dev.md +13 -0
- package/dist/templates/cursor/commands/trellis-brainstorm.md +474 -0
- package/dist/templates/cursor/commands/trellis-break-loop.md +107 -0
- package/dist/templates/cursor/commands/trellis-check-backend.md +13 -0
- package/dist/templates/cursor/commands/trellis-check-cross-layer.md +153 -0
- package/dist/templates/cursor/commands/trellis-check-frontend.md +13 -0
- package/dist/templates/cursor/commands/trellis-create-command.md +154 -0
- package/dist/templates/cursor/commands/trellis-finish-work.md +143 -0
- package/dist/templates/cursor/commands/trellis-integrate-skill.md +219 -0
- package/dist/templates/cursor/commands/trellis-onboard.md +358 -0
- package/dist/templates/cursor/commands/trellis-record-session.md +62 -0
- package/dist/templates/cursor/commands/trellis-start.md +366 -0
- package/dist/templates/cursor/commands/trellis-update-spec.md +354 -0
- package/dist/templates/cursor/index.d.ts +24 -0
- package/dist/templates/cursor/index.d.ts.map +1 -0
- package/dist/templates/cursor/index.js +44 -0
- package/dist/templates/cursor/index.js.map +1 -0
- package/dist/templates/extract.d.ts +166 -0
- package/dist/templates/extract.d.ts.map +1 -0
- package/dist/templates/extract.js +296 -0
- package/dist/templates/extract.js.map +1 -0
- package/dist/templates/gemini/commands/trellis/before-backend-dev.toml +17 -0
- package/dist/templates/gemini/commands/trellis/before-frontend-dev.toml +17 -0
- package/dist/templates/gemini/commands/trellis/brainstorm.toml +420 -0
- package/dist/templates/gemini/commands/trellis/break-loop.toml +129 -0
- package/dist/templates/gemini/commands/trellis/check-backend.toml +17 -0
- package/dist/templates/gemini/commands/trellis/check-cross-layer.toml +147 -0
- package/dist/templates/gemini/commands/trellis/check-frontend.toml +17 -0
- package/dist/templates/gemini/commands/trellis/create-command.toml +119 -0
- package/dist/templates/gemini/commands/trellis/finish-work.toml +133 -0
- package/dist/templates/gemini/commands/trellis/integrate-skill.toml +104 -0
- package/dist/templates/gemini/commands/trellis/onboard.toml +111 -0
- package/dist/templates/gemini/commands/trellis/record-session.toml +66 -0
- package/dist/templates/gemini/commands/trellis/start.toml +292 -0
- package/dist/templates/gemini/commands/trellis/update-spec.toml +132 -0
- package/dist/templates/gemini/index.d.ts +21 -0
- package/dist/templates/gemini/index.d.ts.map +1 -0
- package/dist/templates/gemini/index.js +44 -0
- package/dist/templates/gemini/index.js.map +1 -0
- package/dist/templates/iflow/agents/check.md +122 -0
- package/dist/templates/iflow/agents/debug.md +106 -0
- package/dist/templates/iflow/agents/dispatch.md +214 -0
- package/dist/templates/iflow/agents/implement.md +96 -0
- package/dist/templates/iflow/agents/plan.md +396 -0
- package/dist/templates/iflow/agents/research.md +120 -0
- package/dist/templates/iflow/commands/trellis/before-backend-dev.md +13 -0
- package/dist/templates/iflow/commands/trellis/before-frontend-dev.md +13 -0
- package/dist/templates/iflow/commands/trellis/brainstorm.md +474 -0
- package/dist/templates/iflow/commands/trellis/break-loop.md +125 -0
- package/dist/templates/iflow/commands/trellis/check-backend.md +13 -0
- package/dist/templates/iflow/commands/trellis/check-cross-layer.md +153 -0
- package/dist/templates/iflow/commands/trellis/check-frontend.md +13 -0
- package/dist/templates/iflow/commands/trellis/create-command.md +152 -0
- package/dist/templates/iflow/commands/trellis/finish-work.md +153 -0
- package/dist/templates/iflow/commands/trellis/integrate-skill.md +219 -0
- package/dist/templates/iflow/commands/trellis/onboard.md +358 -0
- package/dist/templates/iflow/commands/trellis/parallel.md +193 -0
- package/dist/templates/iflow/commands/trellis/record-session.md +62 -0
- package/dist/templates/iflow/commands/trellis/start.md +373 -0
- package/dist/templates/iflow/commands/trellis/update-spec.md +354 -0
- package/dist/templates/iflow/hooks/inject-subagent-context.py +788 -0
- package/dist/templates/iflow/hooks/ralph-loop.py +388 -0
- package/dist/templates/iflow/hooks/session-start.py +143 -0
- package/dist/templates/iflow/index.d.ts +54 -0
- package/dist/templates/iflow/index.d.ts.map +1 -0
- package/dist/templates/iflow/index.js +85 -0
- package/dist/templates/iflow/index.js.map +1 -0
- package/dist/templates/iflow/settings.json +40 -0
- package/dist/templates/kilo/commands/trellis/before-backend-dev.md +13 -0
- package/dist/templates/kilo/commands/trellis/before-frontend-dev.md +13 -0
- package/dist/templates/kilo/commands/trellis/brainstorm.md +474 -0
- package/dist/templates/kilo/commands/trellis/break-loop.md +125 -0
- package/dist/templates/kilo/commands/trellis/check-backend.md +13 -0
- package/dist/templates/kilo/commands/trellis/check-cross-layer.md +153 -0
- package/dist/templates/kilo/commands/trellis/check-frontend.md +13 -0
- package/dist/templates/kilo/commands/trellis/create-command.md +152 -0
- package/dist/templates/kilo/commands/trellis/finish-work.md +129 -0
- package/dist/templates/kilo/commands/trellis/integrate-skill.md +219 -0
- package/dist/templates/kilo/commands/trellis/onboard.md +358 -0
- package/dist/templates/kilo/commands/trellis/parallel.md +194 -0
- package/dist/templates/kilo/commands/trellis/record-session.md +62 -0
- package/dist/templates/kilo/commands/trellis/start.md +321 -0
- package/dist/templates/kilo/commands/trellis/update-spec.md +285 -0
- package/dist/templates/kilo/index.d.ts +16 -0
- package/dist/templates/kilo/index.d.ts.map +1 -0
- package/dist/templates/kilo/index.js +39 -0
- package/dist/templates/kilo/index.js.map +1 -0
- package/dist/templates/kiro/index.d.ts +18 -0
- package/dist/templates/kiro/index.d.ts.map +1 -0
- package/dist/templates/kiro/index.js +40 -0
- package/dist/templates/kiro/index.js.map +1 -0
- package/dist/templates/kiro/skills/before-backend-dev/SKILL.md +18 -0
- package/dist/templates/kiro/skills/before-frontend-dev/SKILL.md +18 -0
- package/dist/templates/kiro/skills/brainstorm/SKILL.md +479 -0
- package/dist/templates/kiro/skills/break-loop/SKILL.md +130 -0
- package/dist/templates/kiro/skills/check-backend/SKILL.md +18 -0
- package/dist/templates/kiro/skills/check-cross-layer/SKILL.md +158 -0
- package/dist/templates/kiro/skills/check-frontend/SKILL.md +18 -0
- package/dist/templates/kiro/skills/create-command/SKILL.md +101 -0
- package/dist/templates/kiro/skills/finish-work/SKILL.md +148 -0
- package/dist/templates/kiro/skills/integrate-skill/SKILL.md +221 -0
- package/dist/templates/kiro/skills/onboard/SKILL.md +363 -0
- package/dist/templates/kiro/skills/record-session/SKILL.md +67 -0
- package/dist/templates/kiro/skills/start/SKILL.md +330 -0
- package/dist/templates/kiro/skills/update-spec/SKILL.md +335 -0
- package/dist/templates/markdown/agents.md +18 -0
- package/dist/templates/markdown/gitignore.txt +12 -0
- package/dist/templates/markdown/index.d.ts +27 -0
- package/dist/templates/markdown/index.d.ts.map +1 -0
- package/dist/templates/markdown/index.js +52 -0
- package/dist/templates/markdown/index.js.map +1 -0
- package/dist/templates/markdown/spec/backend/database-guidelines.md.txt +51 -0
- package/dist/templates/markdown/spec/backend/directory-structure.md.txt +54 -0
- package/dist/templates/markdown/spec/backend/error-handling.md.txt +51 -0
- package/dist/templates/markdown/spec/backend/index.md +40 -0
- package/dist/templates/markdown/spec/backend/index.md.txt +38 -0
- package/dist/templates/markdown/spec/backend/logging-guidelines.md.txt +51 -0
- package/dist/templates/markdown/spec/backend/quality-guidelines.md.txt +51 -0
- package/dist/templates/markdown/spec/backend/script-conventions.md +467 -0
- package/dist/templates/markdown/spec/frontend/component-guidelines.md.txt +59 -0
- package/dist/templates/markdown/spec/frontend/directory-structure.md.txt +54 -0
- package/dist/templates/markdown/spec/frontend/hook-guidelines.md.txt +51 -0
- package/dist/templates/markdown/spec/frontend/index.md.txt +39 -0
- package/dist/templates/markdown/spec/frontend/quality-guidelines.md.txt +51 -0
- package/dist/templates/markdown/spec/frontend/state-management.md.txt +51 -0
- package/dist/templates/markdown/spec/frontend/type-safety.md.txt +51 -0
- package/dist/templates/markdown/spec/guides/code-reuse-thinking-guide.md +118 -0
- package/dist/templates/markdown/spec/guides/code-reuse-thinking-guide.md.txt +92 -0
- package/dist/templates/markdown/spec/guides/cross-layer-thinking-guide.md.txt +94 -0
- package/dist/templates/markdown/spec/guides/cross-platform-thinking-guide.md +394 -0
- package/dist/templates/markdown/spec/guides/cross-platform-thinking-guide.md.txt +319 -0
- package/dist/templates/markdown/spec/guides/index.md.txt +79 -0
- package/dist/templates/markdown/workspace-index.md +123 -0
- package/dist/templates/markdown/worktree.yaml.txt +58 -0
- package/dist/templates/opencode/agents/check.md +146 -0
- package/dist/templates/opencode/agents/debug.md +129 -0
- package/dist/templates/opencode/agents/dispatch.md +223 -0
- package/dist/templates/opencode/agents/implement.md +120 -0
- package/dist/templates/opencode/agents/research.md +147 -0
- package/dist/templates/opencode/agents/trellis-plan.md +427 -0
- package/dist/templates/opencode/commands/trellis/before-backend-dev.md +13 -0
- package/dist/templates/opencode/commands/trellis/before-frontend-dev.md +13 -0
- package/dist/templates/opencode/commands/trellis/brainstorm.md +474 -0
- package/dist/templates/opencode/commands/trellis/break-loop.md +125 -0
- package/dist/templates/opencode/commands/trellis/check-backend.md +13 -0
- package/dist/templates/opencode/commands/trellis/check-cross-layer.md +153 -0
- package/dist/templates/opencode/commands/trellis/check-frontend.md +13 -0
- package/dist/templates/opencode/commands/trellis/create-command.md +154 -0
- package/dist/templates/opencode/commands/trellis/finish-work.md +144 -0
- package/dist/templates/opencode/commands/trellis/integrate-skill.md +219 -0
- package/dist/templates/opencode/commands/trellis/migrate-specs.md +0 -0
- package/dist/templates/opencode/commands/trellis/onboard.md +358 -0
- package/dist/templates/opencode/commands/trellis/parallel.md +194 -0
- package/dist/templates/opencode/commands/trellis/record-session.md +62 -0
- package/dist/templates/opencode/commands/trellis/start.md +338 -0
- package/dist/templates/opencode/commands/trellis/update-spec.md +354 -0
- package/dist/templates/opencode/lib/trellis-context.js +436 -0
- package/dist/templates/opencode/package.json +5 -0
- package/dist/templates/opencode/plugin/inject-subagent-context.js +538 -0
- package/dist/templates/opencode/plugin/session-start.js +192 -0
- package/dist/templates/trellis/VERSION +1 -0
- package/dist/templates/trellis/deliverables/README.md +51 -0
- package/dist/templates/trellis/gitignore.txt +29 -0
- package/dist/templates/trellis/index.d.ts +49 -0
- package/dist/templates/trellis/index.d.ts.map +1 -0
- package/dist/templates/trellis/index.js +92 -0
- package/dist/templates/trellis/index.js.map +1 -0
- package/dist/templates/trellis/paths.README.md +277 -0
- package/dist/templates/trellis/paths.yaml +41 -0
- package/dist/templates/trellis/pool/implementations.json +5 -0
- package/dist/templates/trellis/pool/prototypes.json +5 -0
- package/dist/templates/trellis/pool/requirements.json +5 -0
- package/dist/templates/trellis/scripts/__init__.py +5 -0
- package/dist/templates/trellis/scripts/add_session.py +391 -0
- package/dist/templates/trellis/scripts/common/__init__.py +80 -0
- package/dist/templates/trellis/scripts/common/cli_adapter.py +522 -0
- package/dist/templates/trellis/scripts/common/developer.py +189 -0
- package/dist/templates/trellis/scripts/common/git_context.py +383 -0
- package/dist/templates/trellis/scripts/common/paths.py +346 -0
- package/dist/templates/trellis/scripts/common/phase.py +253 -0
- package/dist/templates/trellis/scripts/common/project_paths.py +189 -0
- package/dist/templates/trellis/scripts/common/registry.py +365 -0
- package/dist/templates/trellis/scripts/common/task_queue.py +255 -0
- package/dist/templates/trellis/scripts/common/task_utils.py +177 -0
- package/dist/templates/trellis/scripts/common/worktree.py +218 -0
- package/dist/templates/trellis/scripts/create_bootstrap.py +290 -0
- package/dist/templates/trellis/scripts/get_context.py +16 -0
- package/dist/templates/trellis/scripts/get_developer.py +26 -0
- package/dist/templates/trellis/scripts/handoff_generator.py +380 -0
- package/dist/templates/trellis/scripts/init_developer.py +51 -0
- package/dist/templates/trellis/scripts/multi_agent/__init__.py +5 -0
- package/dist/templates/trellis/scripts/multi_agent/cleanup.py +403 -0
- package/dist/templates/trellis/scripts/multi_agent/create_pr.py +329 -0
- package/dist/templates/trellis/scripts/multi_agent/plan.py +233 -0
- package/dist/templates/trellis/scripts/multi_agent/start.py +461 -0
- package/dist/templates/trellis/scripts/multi_agent/status.py +817 -0
- package/dist/templates/trellis/scripts/pool.py +373 -0
- package/dist/templates/trellis/scripts/task.py +1162 -0
- package/dist/templates/trellis/scripts-shell-archive/add-session.sh +384 -0
- package/dist/templates/trellis/scripts-shell-archive/common/developer.sh +129 -0
- package/dist/templates/trellis/scripts-shell-archive/common/git-context.sh +263 -0
- package/dist/templates/trellis/scripts-shell-archive/common/paths.sh +208 -0
- package/dist/templates/trellis/scripts-shell-archive/common/phase.sh +150 -0
- package/dist/templates/trellis/scripts-shell-archive/common/registry.sh +247 -0
- package/dist/templates/trellis/scripts-shell-archive/common/task-queue.sh +142 -0
- package/dist/templates/trellis/scripts-shell-archive/common/task-utils.sh +151 -0
- package/dist/templates/trellis/scripts-shell-archive/common/worktree.sh +128 -0
- package/dist/templates/trellis/scripts-shell-archive/create-bootstrap.sh +299 -0
- package/dist/templates/trellis/scripts-shell-archive/get-context.sh +7 -0
- package/dist/templates/trellis/scripts-shell-archive/get-developer.sh +15 -0
- package/dist/templates/trellis/scripts-shell-archive/init-developer.sh +34 -0
- package/dist/templates/trellis/scripts-shell-archive/multi-agent/cleanup.sh +396 -0
- package/dist/templates/trellis/scripts-shell-archive/multi-agent/create-pr.sh +241 -0
- package/dist/templates/trellis/scripts-shell-archive/multi-agent/plan.sh +207 -0
- package/dist/templates/trellis/scripts-shell-archive/multi-agent/start.sh +317 -0
- package/dist/templates/trellis/scripts-shell-archive/multi-agent/status.sh +828 -0
- package/dist/templates/trellis/scripts-shell-archive/task.sh +1204 -0
- package/dist/templates/trellis/spec/roles/designer/index.md +243 -0
- package/dist/templates/trellis/spec/roles/designer/mock-data-standards.md +481 -0
- package/dist/templates/trellis/spec/roles/designer/prototype-guidelines.md +429 -0
- package/dist/templates/trellis/spec/roles/frontend-impl/api-integration.md +565 -0
- package/dist/templates/trellis/spec/roles/frontend-impl/index.md +321 -0
- package/dist/templates/trellis/spec/roles/frontend-impl/state-management.md +599 -0
- package/dist/templates/trellis/spec/roles/pm/index.md +112 -0
- package/dist/templates/trellis/spec/roles/pm/prd-template.md +124 -0
- package/dist/templates/trellis/tasks/.gitkeep +0 -0
- package/dist/templates/trellis/workflow.md +416 -0
- package/dist/templates/trellis/worktree.yaml +47 -0
- package/dist/types/ai-tools.d.ts +56 -0
- package/dist/types/ai-tools.d.ts.map +1 -0
- package/dist/types/ai-tools.js +103 -0
- package/dist/types/ai-tools.js.map +1 -0
- package/dist/types/migration.d.ts +86 -0
- package/dist/types/migration.d.ts.map +1 -0
- package/dist/types/migration.js +8 -0
- package/dist/types/migration.js.map +1 -0
- package/dist/utils/compare-versions.d.ts +12 -0
- package/dist/utils/compare-versions.d.ts.map +1 -0
- package/dist/utils/compare-versions.js +76 -0
- package/dist/utils/compare-versions.js.map +1 -0
- package/dist/utils/file-writer.d.ts +23 -0
- package/dist/utils/file-writer.d.ts.map +1 -0
- package/dist/utils/file-writer.js +140 -0
- package/dist/utils/file-writer.js.map +1 -0
- package/dist/utils/project-detector.d.ts +16 -0
- package/dist/utils/project-detector.d.ts.map +1 -0
- package/dist/utils/project-detector.js +186 -0
- package/dist/utils/project-detector.js.map +1 -0
- package/dist/utils/template-fetcher.d.ts +51 -0
- package/dist/utils/template-fetcher.d.ts.map +1 -0
- package/dist/utils/template-fetcher.js +174 -0
- package/dist/utils/template-fetcher.js.map +1 -0
- package/dist/utils/template-hash.d.ts +78 -0
- package/dist/utils/template-hash.d.ts.map +1 -0
- package/dist/utils/template-hash.js +233 -0
- package/dist/utils/template-hash.js.map +1 -0
- package/package.json +87 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: research
|
|
3
|
+
description: |
|
|
4
|
+
Code and tech search expert. Pure research, no code modifications. Finds files, patterns, and tech solutions.
|
|
5
|
+
tools: Read, Glob, Grep, mcp__exa__web_search_exa, mcp__exa__get_code_context_exa, Skill, mcp__chrome-devtools__*
|
|
6
|
+
model: opus
|
|
7
|
+
---
|
|
8
|
+
# Research Agent
|
|
9
|
+
|
|
10
|
+
You are the Research Agent in the Trellis workflow.
|
|
11
|
+
|
|
12
|
+
## Core Principle
|
|
13
|
+
|
|
14
|
+
**You do one thing: find and explain information.**
|
|
15
|
+
|
|
16
|
+
You are a documenter, not a reviewer. Your job is to help get the information needed.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Core Responsibilities
|
|
21
|
+
|
|
22
|
+
### 1. Internal Search (Project Code)
|
|
23
|
+
|
|
24
|
+
| Search Type | Goal | Tools |
|
|
25
|
+
|-------------|------|-------|
|
|
26
|
+
| **WHERE** | Locate files/components | Glob, Grep |
|
|
27
|
+
| **HOW** | Understand code logic | Read, Grep |
|
|
28
|
+
| **PATTERN** | Discover existing patterns | Grep, Read |
|
|
29
|
+
|
|
30
|
+
### 2. External Search (Tech Solutions)
|
|
31
|
+
|
|
32
|
+
Use web search for best practices and code examples.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Strict Boundaries
|
|
37
|
+
|
|
38
|
+
### Only Allowed
|
|
39
|
+
|
|
40
|
+
- Describe **what exists**
|
|
41
|
+
- Describe **where it is**
|
|
42
|
+
- Describe **how it works**
|
|
43
|
+
- Describe **how components interact**
|
|
44
|
+
|
|
45
|
+
### Forbidden (unless explicitly asked)
|
|
46
|
+
|
|
47
|
+
- Suggest improvements
|
|
48
|
+
- Criticize implementation
|
|
49
|
+
- Recommend refactoring
|
|
50
|
+
- Modify any files
|
|
51
|
+
- Execute git commands
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Workflow
|
|
56
|
+
|
|
57
|
+
### Step 1: Understand Search Request
|
|
58
|
+
|
|
59
|
+
Analyze the query, determine:
|
|
60
|
+
|
|
61
|
+
- Search type (internal/external/mixed)
|
|
62
|
+
- Search scope (global/specific directory)
|
|
63
|
+
- Expected output (file list/code patterns/tech solutions)
|
|
64
|
+
|
|
65
|
+
### Step 2: Execute Search
|
|
66
|
+
|
|
67
|
+
Execute multiple independent searches in parallel for efficiency.
|
|
68
|
+
|
|
69
|
+
### Step 3: Organize Results
|
|
70
|
+
|
|
71
|
+
Output structured results in report format.
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Report Format
|
|
76
|
+
|
|
77
|
+
```markdown
|
|
78
|
+
## Search Results
|
|
79
|
+
|
|
80
|
+
### Query
|
|
81
|
+
|
|
82
|
+
{original query}
|
|
83
|
+
|
|
84
|
+
### Files Found
|
|
85
|
+
|
|
86
|
+
| File Path | Description |
|
|
87
|
+
|-----------|-------------|
|
|
88
|
+
| `src/services/xxx.ts` | Main implementation |
|
|
89
|
+
| `src/types/xxx.ts` | Type definitions |
|
|
90
|
+
|
|
91
|
+
### Code Pattern Analysis
|
|
92
|
+
|
|
93
|
+
{Describe discovered patterns, cite specific files and line numbers}
|
|
94
|
+
|
|
95
|
+
### Related Spec Documents
|
|
96
|
+
|
|
97
|
+
- `.trellis/spec/xxx.md` - {description}
|
|
98
|
+
|
|
99
|
+
### Not Found
|
|
100
|
+
|
|
101
|
+
{If some content was not found, explain}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Guidelines
|
|
107
|
+
|
|
108
|
+
### DO
|
|
109
|
+
|
|
110
|
+
- Provide specific file paths and line numbers
|
|
111
|
+
- Quote actual code snippets
|
|
112
|
+
- Distinguish "definitely found" and "possibly related"
|
|
113
|
+
- Explain search scope and limitations
|
|
114
|
+
|
|
115
|
+
### DON'T
|
|
116
|
+
|
|
117
|
+
- Don't guess uncertain info
|
|
118
|
+
- Don't omit important search results
|
|
119
|
+
- Don't add improvement suggestions in report (unless explicitly asked)
|
|
120
|
+
- Don't modify any files
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Read the backend development guidelines before starting your development task.
|
|
2
|
+
|
|
3
|
+
Execute these steps:
|
|
4
|
+
1. Read `.trellis/spec/backend/index.md` to understand available guidelines
|
|
5
|
+
2. Based on your task, read the relevant guideline files:
|
|
6
|
+
- Database work → `.trellis/spec/backend/database-guidelines.md`
|
|
7
|
+
- Error handling → `.trellis/spec/backend/error-handling.md`
|
|
8
|
+
- Logging → `.trellis/spec/backend/logging-guidelines.md`
|
|
9
|
+
- Type questions → `.trellis/spec/backend/type-safety.md`
|
|
10
|
+
3. Understand the coding standards and patterns you need to follow
|
|
11
|
+
4. Then proceed with your development plan
|
|
12
|
+
|
|
13
|
+
This step is **mandatory** before writing any backend code.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Read the frontend development guidelines before starting your development task.
|
|
2
|
+
|
|
3
|
+
Execute these steps:
|
|
4
|
+
1. Read `.trellis/spec/frontend/index.md` to understand available guidelines
|
|
5
|
+
2. Based on your task, read the relevant guideline files:
|
|
6
|
+
- Component work → `.trellis/spec/frontend/component-guidelines.md`
|
|
7
|
+
- Hook work → `.trellis/spec/frontend/hook-guidelines.md`
|
|
8
|
+
- State management → `.trellis/spec/frontend/state-management.md`
|
|
9
|
+
- Type questions → `.trellis/spec/frontend/type-safety.md`
|
|
10
|
+
3. Understand the coding standards and patterns you need to follow
|
|
11
|
+
4. Then proceed with your development plan
|
|
12
|
+
|
|
13
|
+
This step is **mandatory** before writing any frontend code.
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
# Before Role Work - 加载角色工作规范
|
|
2
|
+
|
|
3
|
+
在开始任务前,加载并展示当前角色的工作规范,帮助 AI 和用户理解角色职责和标准。
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 使用场景
|
|
8
|
+
|
|
9
|
+
| 角色 | 何时使用 | 读取什么 |
|
|
10
|
+
|------|---------|---------|
|
|
11
|
+
| **PM** | 编写 PRD 前 | PM 工作规范、PRD 模板 |
|
|
12
|
+
| **Designer** | 创建原型前 | Designer 工作规范、原型标准 |
|
|
13
|
+
| **Frontend** | 补充逻辑前 | Frontend 工作规范、API 集成指南 |
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## 命令格式
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
/trellis:before-role-work
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
**无需参数** - 自动检测当前任务的角色
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 执行流程
|
|
28
|
+
|
|
29
|
+
### Step 1: 检测当前任务
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
cat .trellis/.current-task
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**输出示例**:`.trellis/tasks/designer/02-28-user-login`
|
|
36
|
+
|
|
37
|
+
**如果没有当前任务**:
|
|
38
|
+
```
|
|
39
|
+
Error: 没有设置当前任务
|
|
40
|
+
|
|
41
|
+
请先执行以下命令之一:
|
|
42
|
+
- 创建新任务:python3 .trellis/scripts/task.py create "<title>"
|
|
43
|
+
- 或选择任务:/trellis:pick-task <pool-type> <task-id>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
### Step 2: 读取任务角色
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
cat <task_dir>/task.json | jq -r '.role'
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
**输出示例**:`designer`
|
|
55
|
+
|
|
56
|
+
**如果 task.json 缺少 role 字段**:
|
|
57
|
+
```
|
|
58
|
+
Error: task.json 缺少 role 字段
|
|
59
|
+
|
|
60
|
+
请先设置角色:
|
|
61
|
+
python3 .trellis/scripts/task.py set-role <task-dir> <pm|designer|frontend>
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
### Step 3: 读取角色规范
|
|
67
|
+
|
|
68
|
+
**规范文件路径**:
|
|
69
|
+
```python
|
|
70
|
+
role_spec_dir = f".trellis/spec/roles/{role}/"
|
|
71
|
+
index_file = f"{role_spec_dir}/index.md"
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
**角色规范映射**:
|
|
75
|
+
| Role | 规范目录 | 主文件 |
|
|
76
|
+
|------|---------|--------|
|
|
77
|
+
| `pm` | `.trellis/spec/roles/pm/` | `index.md` |
|
|
78
|
+
| `designer` | `.trellis/spec/roles/designer/` | `index.md` |
|
|
79
|
+
| `frontend` | `.trellis/spec/roles/frontend-impl/` | `index.md` |
|
|
80
|
+
|
|
81
|
+
**读取文件**:
|
|
82
|
+
```bash
|
|
83
|
+
cat <index_file>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
**如果文件不存在**:
|
|
87
|
+
```
|
|
88
|
+
Warning: 角色规范文件未找到
|
|
89
|
+
|
|
90
|
+
路径: .trellis/spec/roles/<role>/index.md
|
|
91
|
+
|
|
92
|
+
建议:
|
|
93
|
+
1. 创建规范文件(参考 Trellis 设计文档)
|
|
94
|
+
2. 或跳过此步骤,直接开始开发
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
### Step 4: 读取补充文档(可选)
|
|
100
|
+
|
|
101
|
+
**根据角色加载额外文档**:
|
|
102
|
+
|
|
103
|
+
#### PM 角色
|
|
104
|
+
```bash
|
|
105
|
+
# PRD 模板
|
|
106
|
+
cat .trellis/spec/roles/pm/prd-template.md
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
#### Designer 角色
|
|
110
|
+
```bash
|
|
111
|
+
# 原型代码指南
|
|
112
|
+
cat .trellis/spec/roles/designer/prototype-guidelines.md
|
|
113
|
+
|
|
114
|
+
# Mock 数据标准
|
|
115
|
+
cat .trellis/spec/roles/designer/mock-data-standards.md
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
#### Frontend 角色
|
|
119
|
+
```bash
|
|
120
|
+
# API 集成指南
|
|
121
|
+
cat .trellis/spec/roles/frontend-impl/api-integration.md
|
|
122
|
+
|
|
123
|
+
# 状态管理规范
|
|
124
|
+
cat .trellis/spec/roles/frontend-impl/state-management.md
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
**注意**:补充文档是可选的,如果文件不存在,跳过即可。
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
### Step 5: 展示给用户
|
|
132
|
+
|
|
133
|
+
**格式化输出**:
|
|
134
|
+
|
|
135
|
+
```markdown
|
|
136
|
+
=== PM 工作规范 ===
|
|
137
|
+
|
|
138
|
+
## 角色定位
|
|
139
|
+
产品经理(PM)是三角色协作流水线的第一环...
|
|
140
|
+
|
|
141
|
+
## 工作流程
|
|
142
|
+
1. 创建任务
|
|
143
|
+
2. 编写PRD
|
|
144
|
+
3. 完成并交接
|
|
145
|
+
|
|
146
|
+
## PRD标准
|
|
147
|
+
### 必需章节
|
|
148
|
+
1. 功能概述
|
|
149
|
+
2. 用户故事
|
|
150
|
+
...
|
|
151
|
+
|
|
152
|
+
[完整规范内容]
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
=== 补充文档 ===
|
|
157
|
+
|
|
158
|
+
## PRD 模板
|
|
159
|
+
[prd-template.md 内容...]
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
📖 阅读完毕。现在开始按照规范工作吧!
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
### Step 6: 可选 - 高亮关键信息
|
|
169
|
+
|
|
170
|
+
**AI 可以提取并高亮关键检查清单**:
|
|
171
|
+
|
|
172
|
+
#### PM 关键要点
|
|
173
|
+
```
|
|
174
|
+
📋 PM 工作检查清单:
|
|
175
|
+
|
|
176
|
+
在执行 /trellis:handoff 前,确保:
|
|
177
|
+
□ PRD包含所有必需章节
|
|
178
|
+
□ 用户故事清晰完整
|
|
179
|
+
□ 验收标准可测试
|
|
180
|
+
□ 非功能需求已明确
|
|
181
|
+
□ 相关资源链接有效
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
#### Designer 关键要点
|
|
185
|
+
```
|
|
186
|
+
📋 Designer 工作检查清单:
|
|
187
|
+
|
|
188
|
+
在执行 /trellis:handoff 前,确保:
|
|
189
|
+
□ 原型可运行(npm run dev 无报错)
|
|
190
|
+
□ 所有交互可操作
|
|
191
|
+
□ Mock数据结构合理
|
|
192
|
+
□ TODO注释清晰
|
|
193
|
+
□ 组件命名语义化
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
#### Frontend 关键要点
|
|
197
|
+
```
|
|
198
|
+
📋 Frontend 工作检查清单:
|
|
199
|
+
|
|
200
|
+
在执行 /trellis:handoff 前,确保:
|
|
201
|
+
□ 所有PRD要求的功能已实现
|
|
202
|
+
□ Mock API已全部替换为真实API
|
|
203
|
+
□ 错误处理完善
|
|
204
|
+
□ TypeScript编译无错误
|
|
205
|
+
□ 单元测试覆盖核心逻辑
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
## 错误处理
|
|
211
|
+
|
|
212
|
+
### 错误场景1:没有当前任务
|
|
213
|
+
```
|
|
214
|
+
Error: 没有设置当前任务
|
|
215
|
+
|
|
216
|
+
请先创建或选择任务:
|
|
217
|
+
- 新任务:python3 .trellis/scripts/task.py create "<title>"
|
|
218
|
+
- 选择任务:/trellis:pick-task <pool-type> <task-id>
|
|
219
|
+
- 恢复任务:python3 .trellis/scripts/task.py start <task-dir>
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### 错误场景2:task.json 缺少 role 字段
|
|
223
|
+
```
|
|
224
|
+
Error: 无法确定任务角色
|
|
225
|
+
|
|
226
|
+
task.json 缺少 role 字段,请先设置:
|
|
227
|
+
python3 .trellis/scripts/task.py set-role <task-dir> <pm|designer|frontend>
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
### 错误场景3:角色规范文件不存在
|
|
231
|
+
```
|
|
232
|
+
Warning: 角色规范文件未找到
|
|
233
|
+
|
|
234
|
+
路径: .trellis/spec/roles/<role>/index.md
|
|
235
|
+
|
|
236
|
+
可能原因:
|
|
237
|
+
- 项目尚未配置角色规范
|
|
238
|
+
- role 字段值错误
|
|
239
|
+
|
|
240
|
+
建议:
|
|
241
|
+
1. 检查 role 字段:pm | designer | frontend
|
|
242
|
+
2. 创建规范文件(参考设计文档)
|
|
243
|
+
3. 或跳过此步骤,直接开始工作
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
---
|
|
247
|
+
|
|
248
|
+
## 示例执行流程
|
|
249
|
+
|
|
250
|
+
### Designer 开始工作前加载规范
|
|
251
|
+
|
|
252
|
+
```bash
|
|
253
|
+
# 用户执行命令
|
|
254
|
+
/trellis:before-role-work
|
|
255
|
+
|
|
256
|
+
# AI 执行流程
|
|
257
|
+
1. 读取当前任务:.trellis/tasks/designer/02-28-user-login
|
|
258
|
+
2. 读取 task.json:role=designer ✅
|
|
259
|
+
3. 读取规范:.trellis/spec/roles/designer/index.md
|
|
260
|
+
4. 读取补充文档:
|
|
261
|
+
- prototype-guidelines.md
|
|
262
|
+
- mock-data-standards.md
|
|
263
|
+
5. 展示给用户
|
|
264
|
+
|
|
265
|
+
# AI 输出
|
|
266
|
+
=== Designer 工作规范 ===
|
|
267
|
+
|
|
268
|
+
## 角色定位
|
|
269
|
+
交互设计师(Designer)是三角色协作流水线的第二环...
|
|
270
|
+
|
|
271
|
+
## 工作流程
|
|
272
|
+
1. 选择需求:/trellis:pick-task requirements <task-id>
|
|
273
|
+
2. 创建原型
|
|
274
|
+
3. 完成并交接:/trellis:handoff
|
|
275
|
+
|
|
276
|
+
## 原型代码标准
|
|
277
|
+
### 必需要素
|
|
278
|
+
1. 可运行性 - 原型可以直接 npm run dev 运行
|
|
279
|
+
2. Mock数据规范 - 集中管理,易于替换
|
|
280
|
+
3. Mock API位置标注 - 使用清晰的TODO注释
|
|
281
|
+
|
|
282
|
+
...
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
📋 Designer 工作检查清单:
|
|
287
|
+
|
|
288
|
+
在执行 /trellis:handoff 前,确保:
|
|
289
|
+
□ 原型可运行(npm run dev 无报错)
|
|
290
|
+
□ 所有交互可操作(按钮、表单、链接)
|
|
291
|
+
□ Mock数据结构合理(接近真实API)
|
|
292
|
+
□ TODO注释清晰(标注需要替换的Mock)
|
|
293
|
+
□ 组件命名语义化
|
|
294
|
+
□ 已测试关键交互流程
|
|
295
|
+
□ HANDOFF文档包含所有关键信息
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
📖 规范已加载。现在开始按照标准创建原型吧!
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
## 高级功能(可选)
|
|
305
|
+
|
|
306
|
+
### 自动调用
|
|
307
|
+
```
|
|
308
|
+
在某些情况下,AI 可以自动调用此命令(无需用户明确请求):
|
|
309
|
+
|
|
310
|
+
触发条件:
|
|
311
|
+
- 用户首次开始任务(task.py start 后)
|
|
312
|
+
- 用户询问"我应该做什么"、"如何开始"
|
|
313
|
+
|
|
314
|
+
AI 主动提示:
|
|
315
|
+
"我注意到这是一个 Designer 任务,让我先加载工作规范..."
|
|
316
|
+
[自动执行 /trellis:before-role-work]
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
### 只显示检查清单
|
|
320
|
+
```bash
|
|
321
|
+
# 用户可能只想看检查清单,不看完整规范
|
|
322
|
+
/trellis:before-role-work --checklist
|
|
323
|
+
|
|
324
|
+
AI 只输出检查清单部分
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
---
|
|
328
|
+
|
|
329
|
+
## 与其他命令的集成
|
|
330
|
+
|
|
331
|
+
### 与 /trellis:pick-task 集成
|
|
332
|
+
```
|
|
333
|
+
在 /trellis:pick-task 执行完成后,AI 可以提示:
|
|
334
|
+
|
|
335
|
+
"任务已创建。是否查看 Designer 工作规范?
|
|
336
|
+
执行:/trellis:before-role-work"
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
### 与 /trellis:start 集成
|
|
340
|
+
```
|
|
341
|
+
在 /trellis:start 执行完成后,AI 可以自动加载规范:
|
|
342
|
+
|
|
343
|
+
"已设置当前任务。正在加载 PM 工作规范..."
|
|
344
|
+
[自动执行 /trellis:before-role-work]
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
---
|
|
348
|
+
|
|
349
|
+
## 注意事项
|
|
350
|
+
|
|
351
|
+
1. **规范更新**:角色规范文件应该随着项目演进而更新
|
|
352
|
+
2. **团队定制**:不同团队可以定制自己的角色规范
|
|
353
|
+
3. **版本控制**:规范文件应该提交到 git,团队共享
|
|
354
|
+
4. **可选性**:此命令是辅助性的,用户可以选择跳过
|
|
355
|
+
|
|
356
|
+
---
|
|
357
|
+
|
|
358
|
+
## 命令别名(可选)
|
|
359
|
+
|
|
360
|
+
用户可能使用以下变体,AI 应识别并执行相同逻辑:
|
|
361
|
+
- `/trellis:before-role-work`
|
|
362
|
+
- `/before-work`
|
|
363
|
+
- "/加载工作规范"
|
|
364
|
+
- "我应该如何开始这个任务"(AI 主动调用)
|