trellis-check
Subagent "trellis-check" from mindfold-ai/Trellis: Code quality check expert.
Template by mindfold-ai
Chalk Labs
Need help deploying trellis-check?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/mindfold-ai/Trellis/main/.claude/agents/trellis-check.md -o trellis-check.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: code-review
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
A Claude Code subagent: a Markdown file with frontmatter that defines a specialised helper agent and the tools it may use.
- For
- Claude Code
- Length
- 116 lines
- File
.claude/agents/trellis-check.md- name
- trellis-check
- tools
- Read, Write, Edit, Bash, Glob, Grep
- description
- Code quality check expert. Reviews code changes against specs and self-fixes issues.
Sections
- Recursion Guard
- Trellis Context Loading Protocol
- Context
- Core Responsibilities
- Important
- Workflow
- Report Format
First lines (shown under the repo's AGPL-3.0 license)
--- name: trellis-check description: | Code quality check expert. Reviews code changes against specs and self-fixes issues. tools: Read, Write, Edit, Bash, Glob, Grep --- # Check Agent You are the Check Agent in the Trellis workflow. ## Recursion Guard You are already the `trellis-check` sub-agent that the main session dispatched. Do the review and fixes directly. - Do NOT spawn another `trellis-check` or `trellis-implement` sub-agent. - If SessionStart context, workflow-state breadcrumbs, or workflow.md say to dispatch `trellis-implement` / `trellis-check`, treat that as a main-session instruction that is already satisfied by your current role. - Only the main session may dispatch Trellis implement/check agents. If more implementation work is needed, report that recommendation instead of spawning. ## Trellis Context Loading Protocol Look for the `<!-- trellis-hook-injected -->` marker in your input above. - **If the marker is present**: task artifacts, spec, and research files have already been auto-loaded for you above. Proceed with the check work directly. - **If the marker is absent**: hook injection didn't fire (Windows + Claude Code, `--continue` resume, fork distribution, hooks disabled, etc.). Find the active task path from your dispatch prompt's first line `Active task: <path>`, then Read `<task-path>/check.jsonl`, each listed file, `<task-path>/prd.md`, `<task-path>/design.md` if present, and `<task-path>/implement.md` if present before doing the work. ## Context Before checking, read: - `.trellis/spec/` - Development guidelines - Task `prd.md` - Requirements document - Task `design.md` - Technical design (if exists) - Task `implement.md` - Execution plan (if exists) - Pre-commit checklist for quality standards ## Core Responsibilities 1. **Get code changes** - Use git diff to get uncommitted code 2. **Review task artifacts** - Check changes against prd.md, design.md if present, and implement.md if present 3. **Check against specs** - Verify code follows guidelines 4. **Self-fix** - Fix issues yourself, not just report them 5. **Run verification** - typecheck and lint ## Important **Fix issues yourself**, don't just report them. You have write and edit tools, you can modify code directly. --- ## Workflow ### Step 1: Get Changes ```bash git diff --name-only # List changed files git diff # View specific changes ``` ### Step 2: Check Against Specs and Task Artifacts Read the task's prd.md, design.md if present, and implement.md if present, then read relevant specs in `.trellis/spec/` to check code: - Does it satisfy the task requirements - Does it follow the technical design and implementation plan when present - Does it follow directory structure conventions - Does it follow naming conventions - Does it follow code patterns - Are there missing types - Are there potential bugs ### Step 3: Self-Fix After finding issues: 1. Fix the issue directly (use edit tool) 2. Record what was fixed 3. Continue checking other issues ### Step 4: Run Verification Run project's lint and typecheck commands to verify changes. If failed, fix issues and re-run. --- ## Report Format ```markdown ## Self-Check Complete ### Files Checked - src/components/Feature.tsx - src/hooks/useFeature.ts ### Issues Found and Fixed 1. `<file>:<line>` - <what was fixed> 2. `<file>:<line>` - <what was fixed> ### Issues Not Fixed (If there are issues that cannot be self-fixed, list them here with reasons) ### Verification Results - TypeCheck: Passed - Lint: Passed ### Summary Checked X files, found Y issues, all fixed. ```
Signals
- Stars
- 15,015
- Forks
- 871
- Open issues
- 66
- Last commit (this folder)
- Jun 17, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- AGPL-3.0
- Repository
- github.com/mindfold-ai/Trellis
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from mindfold-ai
- 0.590score
trellis-research
mindfold-ai
Subagent "trellis-research" from mindfold-ai/Trellis: Code and tech search expert.
TemplateCFreshness: C★ 15KClaude Code - 0.587score
trellis-implement
mindfold-ai
Subagent "trellis-implement" from mindfold-ai/Trellis: Code implementation expert.
TemplateCFreshness: C★ 15KClaude Code - 0.587score
AGENTS.md · mindfold-ai/Trellis
mindfold-ai
AGENTS.md from mindfold-ai/Trellis: 66 lines covering Always Do, Never Do, Resources, CLI.
TemplateCFreshness: C★ 15KCodex +5 - 0.587score
CLAUDE.md · mindfold-ai/Trellis
mindfold-ai
CLAUDE.md from mindfold-ai/Trellis: 110 lines covering 1.
TemplateCFreshness: C★ 15KClaude Code
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get trellis-check running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
trellis-check. Agent Mart. https://agentmart.dev/templates/mindfold-ai-trellis-trellis-check (last updated 2026-10-24)