Repository navigation
docs: update agent instructions for tstack #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,32 @@ | ||
| # tstack | ||
|
|
||
| A harness-neutral hard fork of pstack: `skills/<name>/SKILL.md` directories plus a user guide in `docs/guide/`. Installed with `npx skills add tacheshun/tstack`. Design: `docs/superpowers/specs/2026-09-30-tstack-design.md`. | ||
| A harness-neutral hard fork of pstack: `skills/<name>/SKILL.md` directories plus a user guide in `docs/guide/`, installed into Claude Code, Codex, Copilot CLI, and Cursor with `npx skills`. Design and rationale: `docs/superpowers/specs/2026-09-30-tstack-design.md`. | ||
|
|
||
| ## Commands | ||
|
|
||
| - `node scripts/check.mjs` validates frontmatter, links, skill references, and banned Cursor-only terms. Every PR must pass it. | ||
| - `node --test scripts/*.test.mjs` tests the validator. | ||
| - `node scripts/check.mjs` must pass on every PR. It checks frontmatter against the Agent Skills spec, markdown links, backtick `playbooks/`, `references/`, and `scripts/` paths, bold skill references, and banned terms. The rules live in the exported constants at the top of the file. | ||
| - `node --test scripts/*.test.mjs` tests the validator. A new check gets a failing test first. | ||
| - In `skills/marius-mode/scripts/`: `bun install`, `bun run test`, `bun run typecheck`. Run one file with `bun test watch-pr/policy.test.ts`. | ||
| - CI (`.github/workflows/check.yml`) runs all of the above. | ||
|
|
||
| ## Rules | ||
| ## Writing skills | ||
|
|
||
| - Write for any harness. Say "spawn a subagent" and "ask the user", never a specific harness's tool name. Name model roles ("default", "fast", "strongest"), never model slugs. | ||
| - Frontmatter keys: `name` (equals the directory), `description`, and optionally `license`, `allowed-tools`, `disable-model-invocation`. Some harnesses ignore `disable-model-invocation`, so write descriptions that only match an explicit request. | ||
| - Cross-family model panels go through `skills/interrogate/references/bridge.md`. Never call another vendor's CLI outside it. | ||
| - Write for any harness. Say "spawn a subagent" and "ask the user", never a harness's tool name. Name model roles ("default", "fast", "strongest"), never model slugs. `BANNED_TERMS` in `check.mjs` enforces this. A file that must name a harness path, such as a per-harness table, gets an `ALLOWED_TERMS` entry. | ||
| - Frontmatter: `name` (equal to the directory, lowercase letters, digits, and single hyphens, max 64), `description` (max 1024), and optionally `license`, `compatibility`, `metadata`, `allowed-tools`, `disable-model-invocation`. | ||
| - Copilot and others ignore `disable-model-invocation` and match descriptions against every prompt. A slash-only skill's description names only its `/command`, quoted request phrases, or "when another skill routes here". Never describe situations ("when doing a large migration"). | ||
| - Link across skills with markdown links, such as `[the bridge](../interrogate/references/bridge.md)`. `check.mjs` validates those. It does not validate backtick paths that start with `../`. | ||
| - Shared facts live in one reference and get linked, not copied. Cross-vendor CLI calls go only through `skills/interrogate/references/bridge.md`. Per-harness transcript locations are in `skills/recall/references/transcripts.md`. | ||
| - `marius-mode` is the hub. It routes to `playbooks/` and to the other skills. When you rename a skill or change its contract, update every reference. | ||
| - `marius-mode` is public. Never add project names, paths, or excerpts mined from anyone's history. | ||
| - Author skills per `skills/marius-mode/playbooks/authoring-a-skill.md`. | ||
| - `marius-mode` is the hub: it routes to `playbooks/` and to the other skills. When you rename or change a skill's contract, update every reference. `check.mjs` catches broken ones. | ||
|
|
||
| ## Testing a change live | ||
|
|
||
| - Try a skill in a scratch project whose `.claude/skills/<name>` symlinks to this checkout. Then run `claude -p "/<name> ..."` there. Never symlink into `~/.claude/skills`. | ||
| - Test installs from the local checkout into a throwaway home: `HOME=$(mktemp -d) npx skills add "$PWD" -g -s '*' -a claude-code codex github-copilot cursor -y`. Codex, Copilot, and Cursor read `~/.agents/skills/`. Claude Code gets symlinks in `~/.claude/skills/`. Script exec bits must survive. | ||
| - `copilot skill list` run in that home shows whether Copilot parses every skill. It works offline. | ||
| - Bridge tests write `~/.config/tstack/bridge`. Delete it afterward. | ||
|
|
||
| ## Process | ||
|
|
||
| - PRs are stacked, one branch per change. Marius reviews and merges bottom-up with merge commits, never squash. Merged branches auto-delete, which retargets the next PR. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a skill needs
compatibilityormetadata, this newly documented allowlist conflicts withskills/marius-mode/playbooks/authoring-a-skill.md:5, which says frontmatter must contain only the previous key set, while this file requires authors to follow that playbook. The validator accepts the new keys, so it will not expose the contradiction; update the playbook or remove these keys here so authors have one authoritative contract.AGENTS.md reference: AGENTS.md:L21-L21
Useful? React with 👍 / 👎.