integrate-skill
Integrate Claude Skill into Project Guidelines
Adapt and integrate a Claude global skill into your project's development guidelines (not directly into project code).
Usage
/trellis:integrate-skill <skill-name>
Examples:
/trellis:integrate-skill frontend-design
/trellis:integrate-skill mcp-builder
Core Principle
[!] Important: The goal of skill integration is to update development guidelines, not to generate project code directly.
- Guidelines content -> Write to
.trellis/spec/cli/{target}/doc.md- Code examples -> Place in
.trellis/spec/cli/{target}/examples/skills/<skill-name>/- Example files -> Use
.templatesuffix (e.g.,component.tsx.template) to avoid IDE errorsWhere
{target}isfrontendorbackend, determined by skill type.
Execution Steps
1. Read Skill Content
openskills read <skill-name>
If the skill doesn't exist, prompt user to check available skills:
# Available skills are listed in AGENTS.md under <available_skills>
2. Determine Integration Target
Based on skill type, determine which guidelines to update:
| Skill Category | Integration Target |
|---|---|
UI/Frontend (frontend-design, web-artifacts-builder) |
.trellis/spec/cli/frontend/ |
Backend/API (mcp-builder) |
.trellis/spec/cli/backend/ |
Documentation (doc-coauthoring, docx, pdf) |
.trellis/ or create dedicated guidelines |
Testing (webapp-testing) |
.trellis/spec/cli/frontend/ (E2E) |
3. Analyze Skill Content
Extract from the skill:
- Core concepts: How the skill works and key concepts
- Best practices: Recommended approaches
- Code patterns: Reusable code templates
- Caveats: Common issues and solutions
4. Execute Integration
4.1 Update Guidelines Document
Add a new section to the corresponding doc.md:
@@@section:skill-<skill-name>
## # <Skill Name> Integration Guide
### Overview
[Core functionality and use cases of the skill]
### Project Adaptation
[How to use this skill in the current project]
### Usage Steps
1. [Step 1]
2. [Step 2]
### Caveats
- [Project-specific constraints]
- [Differences from default behavior]
### Reference Examples
See `examples/skills/<skill-name>/`
@@@/section:skill-<skill-name>
4.2 Create Examples Directory (if code examples exist)
# Directory structure ({target} = frontend or backend)
.trellis/spec/cli/{target}/
|-- doc.md # Add skill-related section
|-- index.md # Update index
+-- examples/
+-- skills/
+-- <skill-name>/
|-- README.md # Example documentation
|-- example-1.ts.template # Code example (use .template suffix)
+-- example-2.tsx.template
File naming conventions:
- Code files:
<name>.<ext>.template(e.g.,component.tsx.template) - Config files:
<name>.config.template(e.g.,tailwind.config.template) - Documentation:
README.md(normal suffix)
4.3 Update Index File
Add to the Quick Navigation table in index.md:
| <Skill-related task> | <Section name> | `skill-<skill-name>` |
5. Generate Integration Report
Skill Integration Report: <skill-name>
# Overview
- Skill description: [Functionality description]
- Integration target:
.trellis/spec/cli/{target}/
# Tech Stack Compatibility
| Skill Requirement | Project Status | Compatibility |
|---|---|---|
| [Tech 1] | [Project tech] | [OK]/[!]/[X] |
# Integration Locations
| Type | Path |
|---|---|
| Guidelines doc | .trellis/spec/cli/{target}/doc.md (section: skill-<name>) |
| Code examples | .trellis/spec/cli/{target}/examples/skills/<name>/ |
| Index update | .trellis/spec/cli/{target}/index.md |
{target}=frontendorbackend
# Dependencies (if needed)
# Install required dependencies (adjust for your package manager)
npm install <package>
# or
pnpm add <package>
# or
yarn add <package>
[OK] Completed Changes
- Added
@@@section:skill-<name>section todoc.md - Added index entry to
index.md - Created example files in
examples/skills/<name>/ - Example files use
.templatesuffix
# Related Guidelines
- [Existing related section IDs]
6. Optional: Create Usage Command
If this skill is frequently used, create a shortcut command:
/trellis:create-command use-<skill-name> Use <skill-name> skill following project guidelines
Common Skill Integration Reference
| Skill | Integration Target | Examples Directory |
|---|---|---|
frontend-design |
cli/frontend |
examples/skills/frontend-design/ |
mcp-builder |
cli/backend |
examples/skills/mcp-builder/ |
webapp-testing |
cli/frontend |
examples/skills/webapp-testing/ |
doc-coauthoring |
.trellis/ |
N/A (documentation workflow only) |
Example: Integrating mcp-builder Skill
Directory Structure
.trellis/spec/cli/backend/
|-- doc.md # Add MCP section
|-- index.md # Add index entry
+-- examples/
+-- skills/
+-- mcp-builder/
|-- README.md
|-- server.ts.template
|-- tools.ts.template
+-- types.ts.template
New Section in doc.md
@@@section:skill-mcp-builder
## # MCP Server Development Guide
### Overview
Create LLM-callable tool services using MCP (Model Context Protocol).
### Project Adaptation
- Place services in a dedicated directory
- Follow existing TypeScript and type definition conventions
- Use project's logging system
### Reference Examples
See `examples/skills/mcp-builder/`
@@@/section:skill-mcp-builder
More from mindfold-ai/trellis
trellis-meta
Understand and customize the local Trellis architecture inside a user project. Use when modifying .trellis plus platform hooks, settings, agents, skills, commands, prompts, or workflows generated by trellis init.
166cc-codex-spec-bootstrap
Claude Code + Codex parallel pipeline for bootstrapping Trellis coding specs. CC analyzes the repo with GitNexus (knowledge graph) + ABCoder (AST), creates Trellis task PRDs with full architectural context and MCP tool instructions, then Codex agents run those tasks in parallel to fill spec files. Use when: bootstrapping coding guidelines, setting up Trellis specs, 'bootstrap specs for codex', 'create spec tasks', 'CC + Codex spec pipeline', 'initialize coding guidelines with code intelligence'. Also triggers when user wants to set up GitNexus or ABCoder MCP for multi-agent spec generation.
89brainstorm
Collaborative requirements discovery session optimized for AI coding workflows. Creates task directories, seeds PRDs, runs codebase research, proposes concrete implementation approaches with trade-offs, and converges on MVP scope through structured Q&A. Use when requirements are unclear, multiple implementation paths exist, trade-offs need evaluation, or a complex feature needs scoping before development.
38break-loop
Deep post-fix bug analysis across five dimensions: root cause categorization, fix failure analysis, prevention mechanisms, systematic expansion, and knowledge capture. Updates .trellis/spec/ guides with lessons learned to prevent recurring bugs. Use when a debugging session completes, after fixing a tricky bug, when the same class of bug keeps recurring, or when you want to capture debugging insights into project documentation.
34record-session
Records completed work progress to .trellis/workspace/ journal files after human testing and commit. Captures session summaries, commit hashes, and updates developer index files for future session context. Use when a coding session is complete, after the human has committed code, or to persist session knowledge for future AI sessions.
32start
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.
30