agentleFS
creedantscreedants/pstack-t3/skills/pstack-author-skill/SKILL.md

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.

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
  1. Very specific:

    Read the pstack-t3 runtime before spawning workers, choosing models, scheduling, or isolating work.

    line 8
  2. Distinctive:

    Before creating, search every directory above for an existing skill that covers the topic.

    line 26
  3. Very specific:

    Only name and description are portable.

    line 40
  4. Very specific:

    Keep SKILL.md lean: the steps an agent follows every time, in order, each naming a concrete tool, path, command, or check.

    line 44
  5. Very specific:

    Put repeatable mechanical work in scripts/, executable, with its invocation shown in the body.

    line 46
  6. Very specific:

    Check the install: every link resolves (readlink -f), the frontmatter parses, every linked reference and script exists, and the skill …

    line 54
  7. Very specific:

    Read what it did with t3_thread_read on the returned childThreadId, view: "activity".

    line 56
  8. Distinctive:

    Run this when a skill exists but did not trigger, or after writing a new one whose triggers are uncertain.

    line 62
  9. Distinctive:

    Write three prompts that should load the skill and two that should not, without naming the skill.

    line 64
  10. Very specific:

    Read each child's view: "activity" and record whether it opened the skill's SKILL.md.

    line 66

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

ProviderUser skill directoryProject 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 with ln -sfn into each user directory above for the providers the user runs.
  • A pstack-t3 skill: edit t3/overrides/<skill>/ or t3/added/<skill>/ in the pstack-t3 repo and run python3 scripts/build.py. Never edit its generated skills/ 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>."
---
  • name equals the directory name. Lowercase letters, digits, and hyphens, at most 64 characters.
  • description is one YAML scalar of at most 1024 characters. Quote it, or use description: >- 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 name and description are portable. Provider-specific keys such as disable-model-invocation or allowed-tools work 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.md lean: 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>.md and 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 the pstack-runtime skill 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.

  1. 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.
  2. Resolve skill tests with python3 <pstack-runtime>/scripts/roles.py show --cwd "$PWD" --parent "<inheritedProviderInstanceId>/<inheritedModel>" --role "skill tests". Take both parent values from orchestrator_capabilities. Spawn a fresh child with delegate_task (mode: "wait", role: "test", target set to that seat). role: "test" is the task kind. The pstack role is only the argument to roles.py. It never goes in delegate_task's role. Omit target only when the seat is inherit, 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.
  3. Read what it did with t3_thread_read on the returned childThreadId, view: "activity". Confirm it read the SKILL.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.
  4. Fix the skill and test again with a new fresh child. Never message the old child to retry. It already knows the answer.
  5. 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.

  1. Write three prompts that should load the skill and two that should not, without naming the skill.
  2. Send each prompt to a fresh child with delegate_task (mode: "wait", role: "test", target from the skill tests seat, read-only brief, the prompt as the whole task). Resolve that seat the same way as step 4 when this session has not already. Omit target only when the seat is inherit.
  3. Read each child's view: "activity" and record whether it opened the skill's SKILL.md.
  4. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.