一键导入
guild-specialize
Enriches CLAUDE.md by exploring the project and specializes agents to the real stack
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Enriches CLAUDE.md by exploring the project and specializes agents to the real stack
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Full pipeline: evaluation -> spec -> implementation -> review -> QA
Full pipeline: evaluation -> spec -> implementation -> review -> QA
Convenes multiple agents to debate an important decision
QA + bugfix cycle until it passes
Convenes multiple agents to debate an important decision
Enriches CLAUDE.md by exploring the project and specializes agents to the real stack
| name | guild-specialize |
| description | Enriches CLAUDE.md by exploring the project and specializes agents to the real stack |
| user-invocable | true |
| workflow | {"version":1,"steps":[{"id":"read-base","role":"system","intent":"Read CLAUDE.md and PROJECT.md for current Guild configuration.","produces":["claude-md","project-md"]},{"id":"explore-project","role":"system","intent":"Scan project structure, dependency files, configs, CI, and documentation to detect stack and architecture.","produces":["detected-stack","detected-architecture","detected-conventions"],"gate":true},{"id":"enrich-claude-md","role":"tech-lead","intent":"Replace [PENDING: guild-specialize] placeholders in CLAUDE.md with detected project information.","requires":["claude-md","detected-stack","detected-architecture","detected-conventions"],"produces":["enriched-claude-md"],"model-tier":"reasoning"},{"id":"specialize-agents","role":"tech-lead","intent":"Add project-specific context to each agent definition in .claude/agents/.","requires":["detected-stack","detected-architecture","detected-conventions"],"produces":["specialized-agents"],"model-tier":"execution"},{"id":"confirm","role":"system","intent":"Present summary of detected stack, architecture, and updated agents.","requires":["enriched-claude-md","specialized-agents"],"produces":["specialization-summary"],"gate":true},{"id":"commit-enrichment","role":"system","intent":"Commit enriched CLAUDE.md and agent files as an atomic commit.","requires":["enriched-claude-md","specialized-agents"],"produces":["enrichment-commit"]}]} |
Explores the user's real project and enriches the entire Guild configuration with concrete information about the detected stack, architecture, and conventions.
This skill runs once after guild init. It transforms generic placeholders into real project information.
guild initRead the Guild configuration files:
CLAUDE.md — current instructions (contains [PENDING: guild-specialize] placeholders)PROJECT.md — identity and stack declared during initInvestigate the real project structure looking for:
Dependencies and versions:
package.json (Node.js/frontend)pom.xml or build.gradle (Java)requirements.txt or pyproject.toml (Python)Gemfile (Ruby)go.mod (Go)Cargo.toml (Rust)Architecture and structure:
src/, app/, lib/, pkg/, internal/Configuration and conventions:
tsconfig.json, eslint.config.*, .prettierrc.env.example, .env.local (environment variables — do NOT read real .env)Dockerfile, docker-compose.yml.github/workflows/, .gitlab-ci.ymlDatabase and migrations:
migrations/, db/, prisma/, drizzle/Existing documentation:
README.md — project overviewdocs/Invoke the Tech Lead agent using Task tool with model: "opus" (reasoning tier) to replace all [PENDING: guild-specialize] placeholders in CLAUDE.md with real information:
.env.exampleCLAUDE.md now uses zone markers (<!-- guild:auto-start:ID --> / <!-- guild:auto-end:ID -->) to delimit auto-generated sections. When enriching:
structure, architecture, conventions, env-vars[PENDING: guild-specialize] placeholders directlyInvoke the Tech Lead agent using Task tool with model: "sonnet" (execution tier) to add project-specific context for each agent in .claude/agents/*.md:
When specializing agents, append a zone at the bottom of each agent file:
<!-- guild:auto-start:agent-context -->
## Project-Specific Context
- Stack: [detected stack]
- Architecture: [detected patterns]
- Conventions: [detected conventions]
<!-- guild:auto-end:agent-context -->
This zone allows guild-re-specialize to update agent context later without touching the agent's core role definition.
Use the Task tool with model: "sonnet" to invoke each agent by reading their .claude/agents/[name].md if you need a specialized perspective to enrich their configuration.
The model parameter is resolved from the step's model-tier: reasoning→"opus", execution→"sonnet". System/gate steps run inline (no Task tool).
Present a summary of what was detected:
Guild v1 specialized for [project-name]
Detected stack:
- [list of technologies with versions]
Architecture:
- [identified pattern]
- [main structure]
Updated agents:
- [list of agents with their applied specialization]
Use /resume or /build-feature to continue work.
CRITICAL: After enriching CLAUDE.md and agent files, commit the changes immediately as their own atomic commit. Do NOT leave them as unstaged changes — they are vulnerable to git stash and other operations.
git add CLAUDE.md .claude/agents/*.md
git commit -m "chore: enrich CLAUDE.md and agents via guild-specialize"
This ensures enrichment survives any subsequent git operations (stash, checkout, rebase).
User: /guild-specialize
Guild Specialize analyzing project...
Tech Lead (opus) — Enriching CLAUDE.md...
Stack detected:
- Node.js 20.11.0, TypeScript 5.3.3
- React 18.2.0, Next.js 14.1.0
- PostgreSQL via Prisma 5.9.0
Architecture:
- Next.js App Router (src/app/)
- API routes in src/app/api/
- Shared components in src/components/
Tech Lead (sonnet) — Specializing agents...
Agents updated:
- developer.md: Specialized for Next.js + TypeScript
- qa.md: Configured for Vitest + Playwright
Use /resume or /build-feature to continue work.
.env files — only .env.example or .env.localgit stash in automated pipelines — use wip: commits instead