contribute
Guide for contributing to Trellis documentation and marketplace. Covers adding spec templates, marketplace skills, documentation…
Comprehensive quality verification: spec compliance, lint, type-check, tests, cross-layer data flow, code reuse, and consistency checks. Use when code is written and needs quality verification, before committing changes, or to catch context drift during long sessions.
Claude Code
$ npx -y skills add mindfold-ai/trellis --skill trellis-check --agent claude-code
Codex
$ npx skills add mindfold-ai/trellis --skill trellis-check -a codex -y
Cursor
$ npx skills add mindfold-ai/trellis --skill trellis-check -a cursor -y
Gemini CLI
$ npx skills add mindfold-ai/trellis --skill trellis-check -a gemini-cli -y
GitHub Copilot
$ npx skills add mindfold-ai/trellis --skill trellis-check -a github-copilot -y
OpenCode
$ npx skills add mindfold-ai/trellis --skill trellis-check -a opencode -y
Windsurf
$ npx skills add mindfold-ai/trellis --skill trellis-check -a windsurf -y
name: trellis-check description: "Comprehensive quality verification: spec compliance, lint, type-check, tests, cross-layer data flow, code reuse, and consistency checks. Use when code is written and needs quality verification, before committing changes, or to catch context drift during long sessions."
Comprehensive quality verification for recently written code. Combines spec compliance, cross-layer safety, and pre-commit checks.
---
git diff --name-only HEAD git status
Read the current task artifacts in order:
python3 ./.trellis/scripts/get_context.py --mode packages
For each changed package/layer, read the spec index and follow its **Quality Check** section:
cat .trellis/spec/<package>/<layer>/index.md
Read the specific guideline files referenced — the index is a pointer, not the goal.
Run the project's lint, type-check, and test commands. Fix any failures before proceeding.
> "If I fixed a bug or discovered something non-obvious, should I document it so future me won't hit the same issue?" → If YES, update the relevant spec doc.
Skip this step if your change is confined to a single layer.
grep -r "pattern" src/
---
Report every violation you find. Then:
If a fix would touch files outside the current task's scope, say so and stop instead of widening the change.
Guide for contributing to Trellis documentation and marketplace. Covers adding spec templates, marketplace skills, documentation…
Systematic first principles thinking for any problem domain. Use when the user says "analyze from first principles", "第一性原理",…
Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki,…
Use when the user is debugging a bug, tracing an error, or asking why something fails. Examples: \"Why is X failing?\", \"Where…
Use when the user asks how code works, wants to understand architecture, trace execution flows, or explore unfamiliar parts of…
Use when the user asks about GitNexus itself — available tools, how to query the knowledge graph, MCP resources, graph schema, or…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.