Loading...
Loading...
Meta-skill for understanding and customizing Mindfold Trellis - the AI workflow system for Claude Code and Cursor. This skill documents the ORIGINAL Trellis system design. When users customize their Trellis installation, modifications should be recorded in a project-local `trellis-local` skill, NOT in this meta-skill. Use this skill when: (1) understanding Trellis architecture, (2) customizing Trellis workflows, (3) adding commands/agents/hooks, (4) troubleshooting issues, or (5) adapting Trellis to specific projects.
npx skill4agent add mindfold-ai/docs trellis-meta| Item | Value |
|---|---|
| Trellis CLI Version | 0.3.0-beta.5 |
| Skill Last Updated | 2026-01-31 |
| Min Claude Code Version | 1.0.0+ |
⚠️ Version Mismatch Warning: If your Trellis CLI version differs from above, some features may not work as documented. Runto check.trellis --version
| Feature | Claude Code | Cursor | OpenCode (Future) |
|---|---|---|---|
| Core Systems | |||
| Workspace system | ✅ Full | ✅ Full | ✅ Planned |
| Task system | ✅ Full | ✅ Full | ✅ Planned |
| Spec system | ✅ Full | ✅ Full | ✅ Planned |
| Slash commands | ✅ Full | ✅ Full | ⏳ TBD |
| Agent definitions | ✅ Full | ⚠️ Manual | ⏳ TBD |
| Hook-Dependent Features | |||
| SessionStart hook | ✅ Full | ❌ None | ⏳ TBD |
| PreToolUse hook | ✅ Full | ❌ None | ⏳ TBD |
| SubagentStop hook | ✅ Full | ❌ None | ⏳ TBD |
| Auto context injection | ✅ Full | ❌ Manual | ⏳ TBD |
| Ralph Loop | ✅ Full | ❌ None | ⏳ TBD |
| Multi-Agent/Session | |||
| Multi-Agent (current dir) | ✅ Full | ⚠️ Limited | ⏳ TBD |
| Multi-Session (worktrees) | ✅ Full | ❌ None | ⏳ TBD |
| ✅ Full | ❌ None | ⏳ TBD |
┌─────────────────────────────────────────────────────────────┐
│ PORTABLE (All Platforms) │
│ - .trellis/workspace/ - .trellis/tasks/ │
│ - .trellis/spec/ - .claude/commands/ │
│ - File-based configs - JSONL context files │
└─────────────────────────────────────────────────────────────┘
│
┌─────────────────────────────▼───────────────────────────────┐
│ CLAUDE CODE ONLY │
│ - .claude/hooks/ - .claude/settings.json hooks │
│ - SubagentStop control - Auto context injection │
│ - Ralph Loop - Multi-Session worktrees │
│ - claude CLI features - --resume, --agent flags │
└─────────────────────────────────────────────────────────────┘trellis-local~/.claude/skills/
└── trellis-meta/ # THIS SKILL - Original Trellis documentation
# ⚠️ DO NOT MODIFY for project-specific changes
project/.claude/skills/
└── trellis-local/ # Project-specific customizations
# ✅ Record all modifications heretrellis-local# Look for project-local skill
ls -la .claude/skills/trellis-local/trellis-localmkdir -p .claude/skills/trellis-local.claude/skills/trellis-local/SKILL.md---
name: trellis-local
description: |
Project-specific Trellis customizations for [PROJECT_NAME].
This skill documents modifications made to the vanilla Trellis system
in this project. Inherits from trellis-meta for base documentation.
---
# Trellis Local - [PROJECT_NAME]
## Base Version
Trellis version: X.X.X (from package.json or trellis --version)
Date initialized: YYYY-MM-DD
## Customizations
### Commands Added
(none yet)
### Agents Modified
(none yet)
### Hooks Changed
(none yet)
### Specs Customized
(none yet)
### Workflow Changes
(none yet)
---
## Changelog
### YYYY-MM-DD
- Initial setuptrellis-local/SKILL.md### Commands Added
#### /trellis:my-command
- **File**: `.claude/commands/trellis/my-command.md`
- **Purpose**: [what it does]
- **Added**: 2026-01-31
- **Why**: [reason for adding]### Hooks Changed
#### inject-subagent-context.py
- **Change**: Added support for `my-agent` type
- **Lines modified**: 45-67
- **Date**: 2026-01-31
- **Why**: [reason]trellis-meta┌─────────────────────────────────────────────────────────────────────┐
│ USER INTERACTION │
│ /trellis:start /trellis:parallel /trellis:finish-work │
└─────────────────────────────────┬───────────────────────────────────┘
│
┌─────────────────────────────────▼───────────────────────────────────┐
│ SKILLS LAYER │
│ .claude/commands/trellis/*.md (slash commands) │
│ .claude/agents/*.md (sub-agent definitions) │
└─────────────────────────────────┬───────────────────────────────────┘
│
┌─────────────────────────────────▼───────────────────────────────────┐
│ HOOKS LAYER │
│ SessionStart → session-start.py (injects workflow + context) │
│ PreToolUse:Task → inject-subagent-context.py (spec injection) │
│ SubagentStop → ralph-loop.py (quality enforcement) │
└─────────────────────────────────┬───────────────────────────────────┘
│
┌─────────────────────────────────▼───────────────────────────────────┐
│ PERSISTENCE LAYER │
│ .trellis/workspace/ (journals, session history) │
│ .trellis/tasks/ (task tracking, context files) │
│ .trellis/spec/ (coding guidelines) │
└─────────────────────────────────────────────────────────────────────┘| Principle | Description |
|---|---|
| Specs Injected, Not Remembered | Hooks enforce specs - agents always receive context |
| Read Before Write | Understand guidelines before writing code |
| Layered Context | Only relevant specs load (via JSONL files) |
| Human Commits | AI never commits - human validates first |
| Pure Dispatcher | Dispatch agent only orchestrates |
.trellis/workspace/
├── index.md # Global overview
└── {developer}/ # Per-developer
├── index.md # Personal index (@@@auto markers)
└── journal-N.md # Session journals (max 2000 lines).trellis/.developer.trellis/tasks/{MM-DD-slug-assignee}/
├── task.json # Metadata, phases, branch
├── prd.md # Requirements
├── implement.jsonl # Context for implement agent
├── check.jsonl # Context for check agent
└── debug.jsonl # Context for debug agent.trellis/spec/
├── frontend/ # Frontend guidelines
├── backend/ # Backend guidelines
└── guides/ # Thinking guides| Hook | When | Purpose |
|---|---|---|
| Session begins | Inject workflow, guidelines |
| Before sub-agent | Inject specs via JSONL |
| Check agent stops | Enforce verification (Ralph Loop) |
| Agent | Purpose | Restriction |
|---|---|---|
| Orchestrate pipeline | Pure dispatcher |
| Evaluate requirements | Can reject unclear reqs |
| Find code patterns | Read-only |
| Write code | No git commit |
| Review and self-fix | Ralph Loop controlled |
| Fix issues | Precise fixes only |
plan.py → start.py → Dispatch → implement → check → create-pr.claude/commands/trellis/my-command.mdtrellis-local.claude/agents/my-agent.mdinject-subagent-context.pymy-agent.jsonltrellis-local.claude/hooks/trellis-local.trellis/spec/my-category/index.mdtrellis-localnext_actiontask.jsontrellis-localreferences/
├── core/ # All Platforms (Claude Code, Cursor, etc.)
├── claude-code/ # Claude Code Only
├── how-to-modify/ # Modification Guides
└── meta/ # Documentation & Templatescore/| Document | Content |
|---|---|
| Core systems introduction |
| All |
| Workspace system, journals, developer identity |
| Task system, directories, JSONL context files |
| Spec system, guidelines organization |
| Platform-independent scripts |
claude-code/| Document | Content |
|---|---|
| Claude Code features introduction |
| Hook system, context injection |
| Agent types, invocation, Task tool |
| Quality enforcement mechanism |
| Parallel worktree sessions |
| worktree.yaml configuration |
| Claude Code only scripts |
how-to-modify/| Document | Scenario |
|---|---|
| Quick reference for all modifications |
| Adding slash commands |
| Adding new agent types |
| Adding spec categories |
| Adding workflow phases |
| Modifying hook behavior |
| Changing verify commands |
meta/| Document | Content |
|---|---|
| Detailed platform support matrix |
| How to document customizations |
| Template for project-local skill |
| Script | Purpose |
|---|---|
| Get session context |
| Task management |
| Record session |
| Start parallel agent |
| Path | Purpose |
|---|---|
| Developer identity |
| Active task pointer |
| Main workflow docs |
| Hook configuration |
trellis-localtrellis-local## Changelog
### 2026-02-01 - Upgraded to Trellis X.Y.Z
- Merged new hook behavior from meta-skill
- Kept custom agent `my-agent`
- Updated check.jsonl template