Trellis Review Twostage logo

Trellis Review Twostage

Community
coldwateryi
trellis-review-twostage

Before marking a Trellis subtask complete after self-check all green, conduct two-stage code review: mechanically check spec compliance (against PRD acceptance criteria/decision table/forbidden/file manifest/mount points), then code quality review (against .trellis/spec/guides engineering standards and design discipline). Used in Codex / Claude Code team collaboration scenarios, especially when implementation is by a small-parameter model like qwen3.6 35b—small models reviewing their own code is unreliable, Stage 2 should escalate to strong model; critical issues block completion.

Overview

Publishercoldwateryi
Repositorytrellis-skills
Skill nametrellis-review-twostage
Stars
44
Forks
1
Bundled files
4
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by coldwateryi on GitHub. Read the source before you install it.

Installation

Install the Trellis Review Twostage AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/coldwateryi/trellis-skills/tree/main/trellis-review-twostage
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/coldwateryi/trellis-skills.git /tmp/trellis-skills
mkdir -p .claude/skills
cp -r /tmp/trellis-skills/trellis-review-twostage .claude/skills/trellis-review-twostage
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Trellis Review Twostage in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Trellis Review Twostage on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Trellis Review Twostage is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Trellis Two-Stage Review

Overview

Quality gate before marking subtask complete, after implementation self-check all green. Split into two independent review stages:

  • Stage 1 Spec Compliance: Mechanically check against prd.md, can be done by small model + checklist.
  • Stage 2 Code Quality: Check against engineering standards and design discipline, should be done by strong model (small model reviewing its own output is unreliable).

Any stage finding critical issue blocks completion, send back to trellis-implement-tdd for fix; after fix, review again.

Trigger: trellis-implement-tdd wrap-up self-check all green, handoff to review.

Write every review pass to the fixed task-local file <task-dir>/review-report.md. Create it from references/review-report-template.md on the first review pass, then append a new review-round block for each re-review. Do not edit the template under the skill directory.

Constraints

  • Review based on diff + prd.md, not re-reading entire requirements document.
  • Stage 1 and Stage 2 separate, don't merge—merging causes "did it follow spec" and "is code good" to mask each other.
  • Stage 2 use strong model (role-layered model assignment). If only small model available, Stage 2 at least strictly walk references/review-stage2-checklist.md item by item, and flag "not reviewed by strong model" risk in report.
  • Severity grading: critical (blocking) / major (should fix) / minor (can record for later). Only critical blocks completion.
  • Reviewer doesn't directly change code: output issue list to send back to implementation skill for fix, keeping "write" and "review" separate.

Workflow

1. Prepare

  • Get this task's diff (relative to task start point).
  • Read prd.md: Acceptance Criteria, Decision Table, Forbidden, File Manifest, Behavior Constraints; if design.md exists read Mount Point Checklist, Orchestration-Computation Separation.
  • If check.jsonl exists: pre-load the regression/risk context listed.

2. Stage 1 · Spec Compliance (Mechanical check, small model ok)

Walk references/review-stage1-checklist.md item by item, check if implementation did as planned:

  • Each AC-xxx has corresponding test and is green?
  • Changed files all within「File Manifest」? Any file outside manifest changed?
  • Any violation of「Forbidden」(create already-existing base class, introduce unlisted dependency, etc.)?
  • Choices in「Decision Table」followed (annotation / naming / schema / branching)?
  • 「Mount Point Checklist」wired item by item (route / config / subscription / DI)?
  • Any non-compliance → record as issue. AC without test, changed forbidden file, mount point missing wire = critical.

3. Stage 2 · Code Quality (Strong model)

Walk references/review-stage2-checklist.md item by item, review code itself against .trellis/spec/guides/ and design discipline:

  • Orchestration-Computation Separation: Orchestration logic and computation logic mixed in one place? Pure computation stuffed into orchestration layer making it hard to test?
  • Structural Health: Keep piling into an already-fat file? Create "kitchen-sink that holds everything"?
  • Simplification/Reuse: Duplicate implementation of existing capability? Unrequested over-abstraction (YAGNI violation)?
  • Correctness: Boundary / error paths actually handled (not just making happy-path test green)?
  • Spec Compliance: Naming / layering / error semantics conform to .trellis/spec/?
  • Record by severity; introducing correctness defect or breaking existing behavior = critical.

4. Issue report and verdict

Use references/review-report-template.md to produce/update <task-dir>/review-report.md:

  • Has critical → block, send back to trellis-implement-tdd, only fix flagged items, after fix return to step 1 for re-review.
  • Only major/minor → can pass; major suggest fix this round, minor note to task remarks/later.
  • All pass → hand back to orchestration session to advance task status (task.py advance / enter finish).

Small-model adaptation highlights

  • Write-review separation + model layering: Implementation uses small model, Stage 2 review uses strong model—this is key to trusting small-model output.
  • Stage 1 mechanization: Spec compliance is mechanical item-by-item checking against PRD, small model can handle it, use it to filter out low-level deviations first.
  • Critical blocking: Turn "quality meets bar" into objective gate, not subjective feeling of letting pass.
  • For teams: Two-stage review + severity grading makes PRs reviewable, gives objective acceptance criteria for others'/small-model output.

Reference files

  • references/review-stage1-checklist.md —— Spec compliance mechanical check list, read in Stage 1.
  • references/review-stage2-checklist.md —— Code quality and design discipline list (includes orchestration-computation separation/structural health), read in Stage 2.
  • references/review-report-template.md —— Read-only template for <task-dir>/review-report.md; append/update the task-local file when producing review results.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Trellis Review Twostage AI skill do?

Before marking a Trellis subtask complete after self-check all green, conduct two-stage code review: mechanically check spec compliance (against PRD acceptance criteria/decision table/forbidden/file manifest/mount points), then code quality review (against .trellis/spec/guides engineering standards and design discipline). Used in Codex / Claude Code team collaboration scenarios, especially when implementation is by a small-parameter model like qwen3.6 35b—small models reviewing their own code is unreliable, Stage 2 should escalate to strong model; critical issues block completion.

Why use Trellis Review Twostage on TypingMind?

Because you install it once and use it with any model. Trellis Review Twostage is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Trellis Review Twostage in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/coldwateryi/trellis-skills/tree/main/trellis-review-twostage. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Trellis Review Twostage?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Trellis Review Twostage?

As many as you like. As long as a model supports skills, you can use Trellis Review Twostage with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Trellis Review Twostage AI skill free?

Yes. It is published on GitHub by coldwateryi under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇