pstack-author-skill
Skill3 starsChanged 57 days agoMITView on GitHub
Author, update, or tune a skill so it works under every provider T3 runs (Claude Code, Codex, Grok, Cursor): frontmatter, placement, lean body, and a fresh-child test. Use for 'write a skill', 'new skill for X', 'update this skill', 'tune this skill's description', or when reflect or automate-me hands off a skill edit.
In this repository55 other files it gives its agents.
- AGENTS.mdAGENTS.md
- architectSkill
- arenaSkill
- automate-meSkill
- benchmark-checklistSkill
- blast-radiusSkill
- brigadeSkill
- broSkill
- correctSkill
- create-verification-skillSkill
- figure-it-outSkill
- howSkill
- interrogateSkill
- landingSkill
- maintain-verification-skillSkill
- make-bot-uiSkill
- no-commentsSkill
- poteto-helpSkill
- poteto-modeSkill
- principle-attack-the-premiseSkill
- principle-boundary-disciplineSkill
- principle-build-the-leverSkill
- principle-encode-lessons-in-structureSkill
- principle-exhaust-the-design-spaceSkill
- principle-experience-firstSkill
- principle-explain-the-numberSkill
- principle-fix-root-causesSkill
- principle-foundational-thinkingSkill
- principle-guard-the-context-windowSkill
- principle-laziness-protocolSkill
- principle-make-operations-idempotentSkill
- principle-migrate-callers-then-delete-legacy-apisSkill
- principle-minimize-reader-loadSkill
- principle-model-the-domainSkill
- principle-never-block-on-the-humanSkill
- principle-outcome-oriented-executionSkill
- principle-prove-it-worksSkill
- principle-redesign-from-first-principlesSkill
- principle-separate-before-serializing-shared-stateSkill
- principle-sequence-verifiable-unitsSkill
- principle-subtract-before-you-addSkill
- principle-test-behavior-not-implementationSkill
- principle-type-system-disciplineSkill
- pstack-runtimeSkill
- recallSkill
- reflectSkill
- setup-pstackSkill
- show-me-your-workSkill
- swarmSkill
- tddSkill
- teachSkill
- technical-writingSkill
- typescript-best-practicesSkill
- unslopSkill
- whySkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Read the pstack-t3 runtime before spawning workers, choosing models, scheduling, or isolating work.
- Distinctive: line 26
Before creating, search every directory above for an existing skill that covers the topic.
- Very specific: line 40
Only name and description are portable.
- Very specific: line 44
Keep SKILL.md lean: the steps an agent follows every time, in order, each naming a concrete tool, path, command, or check.
- Very specific: line 46
Put repeatable mechanical work in scripts/, executable, with its invocation shown in the body.
- Very specific: line 54
Check the install: every link resolves (readlink -f), the frontmatter parses, every linked reference and script exists, and the skill …
- Very specific: line 56
Read what it did with t3_thread_read on the returned childThreadId, view: "activity".
- Distinctive: line 62
Run this when a skill exists but did not trigger, or after writing a new one whose triggers are uncertain.
- Distinctive: line 64
Write three prompts that should load the skill and two that should not, without naming the skill.
- Very specific: line 66
Read each child's view: "activity" and record whether it opened the skill's SKILL.md.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Author a skill
Read the pstack-t3 runtime before spawning workers, choosing models, scheduling, or isolating work. It maps those steps onto T3's orchestrator tools.
A skill is a folder with a SKILL.md. An agent reads it cold, mid-task, with no memory of why it was written. Write for that reader.
1. Decide the home
T3 can run any provider, and each provider loads skills from its own directories. Pick where the real files live, then link them everywhere the skill must work.
| Provider | User skill directory | Project skill directory |
| Claude Code | ~/.claude/skills/ | .claude/skills/ |
| Codex | ~/.agents/skills/ | .agents/skills/ |
| Grok | ~/.grok/skills/ | none assumed |
| Cursor | ~/.cursor/skills/ | .agents/skills/ |
- A project skill: real files in
.agents/skills/<name>/, plus a relative link.claude/skills/<name>pointing at../../.agents/skills/<name>. If the repo already keeps skills only under.claude/skills/, invert it. - A personal skill: real files in
~/.config/pstack-t3/personal/<name>/, linked withln -sfninto each user directory above for the providers the user runs. - A pstack-t3 skill: edit
t3/overrides/<skill>/ort3/added/<skill>/in the pstack-t3 repo and runpython3 scripts/build.py. Never edit its generatedskills/tree. - Before creating, search every directory above for an existing skill that covers the topic. Extend it instead of adding a sibling.
2. Write the frontmatter
---
name: <name>
description: "<what it does>. Use for '<trigger phrase>', '<trigger phrase>', or <situation>."
---nameequals the directory name. Lowercase letters, digits, and hyphens, at most 64 characters.descriptionis one YAML scalar of at most 1024 characters. Quote it, or usedescription: >-with indented continuation lines, when it holds a colon, a#, or wraps.- The description names what the skill does and when to use it. Front-load the trigger phrases a user actually types and the situations that should load it. Name a sibling skill when the two are easy to confuse ("Use how for runtime behavior").
- Only
nameanddescriptionare portable. Provider-specific keys such asdisable-model-invocationorallowed-toolswork in some providers and are ignored by others. Never rely on one for correctness. A skill that must not auto-trigger also needs a description narrow enough not to.
3. Write the body
- Keep
SKILL.mdlean: the steps an agent follows every time, in order, each naming a concrete tool, path, command, or check. Aim for under 150 lines. - Push conditional detail into
references/<topic>.mdand link it from the step that needs it, with a relative path from the skill directory. Say when to read it. - Put repeatable mechanical work in
scripts/, executable, with its invocation shown in the body. - Name tools by their unprefixed name (
delegate_task, not a harness-prefixed form). For delegation, models, scheduling, and isolation, link the pstack-t3 runtime instead of restating it. A skill installed outside the pstack tree names thepstack-runtimeskill instead of a relative path. - Short declarative sentences. No hedging. Apply the unslop skill to every line.
4. Test it on a fresh child
A skill nobody has run is a draft. Test it with a child that has never seen it.
- Check the install: every link resolves (
readlink -f), the frontmatter parses, every linked reference and script exists, and the skill appears in T3's$skill picker. - Resolve
skill testswithpython3 <pstack-runtime>/scripts/roles.py show --cwd "$PWD" --parent "<inheritedProviderInstanceId>/<inheritedModel>" --role "skill tests". Take both parent values fromorchestrator_capabilities. Spawn a fresh child withdelegate_task(mode: "wait",role: "test",targetset to that seat).role: "test"is the task kind. The pstack role is only the argument toroles.py. It never goes indelegate_task'srole. Omittargetonly when the seat isinherit, and say that this child is the author because no catalog seat was available. The brief is one realistic task the skill should handle, invoking it by name ("Use the<name>skill to ..."). Give it nothing else from this conversation. Use a read-only brief unless the skill's job is to write, and then point the child at a scratch worktree or directory. - Read what it did with
t3_thread_readon the returnedchildThreadId,view: "activity". Confirm it read theSKILL.md, followed the steps in order, used the named tools, and produced the expected artifact. Where it guessed, stalled, or skipped a step, the skill is unclear there. - Fix the skill and test again with a new fresh child. Never message the old child to retry. It already knows the answer.
- For a skill that must work under several providers, run one test on a seat from a different provider (target from
orchestrator_capabilities). That proves the link for that provider's directory too.
5. Tune the description
Run this when a skill exists but did not trigger, or after writing a new one whose triggers are uncertain.
- Write three prompts that should load the skill and two that should not, without naming the skill.
- Send each prompt to a fresh child with
delegate_task(mode: "wait",role: "test",targetfrom theskill testsseat, read-only brief, the prompt as the whole task). Resolve that seat the same way as step 4 when this session has not already. Omittargetonly when the seat isinherit. - Read each child's
view: "activity"and record whether it opened the skill'sSKILL.md. - Rewrite the description to front-load the missed trigger phrases and to exclude the false matches, then rerun the prompts that failed. Stop when all five behave.
6. Report
Name the skill path, every link created, the test child's childThreadId, and what the test changed in the skill.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

