using-ytstack
Skill2 starsChanged 29 days agoMITView on GitHub
Establishes how agents find and invoke ytstack skills. Requires Skill-tool invocation before any response when a ytstack skill applies. Auto-injected by the SessionStart hook. Not meant for direct user invocation.
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- check-consistencySkill
- adopt-brownfieldSkill
- atomic-designSkill
- code-reviewSkill
- deutschland-stack-apiSkill
- document-releaseSkill
- european-alternatives-apiSkill
- finish-branchSkill
- grillSkill
- handoff-sessionSkill
- init-projectSkill
- minimal-codeSkill
- office-hoursSkill
- oss-projectSkill
- plan-ceo-reviewSkill
- plan-eng-reviewSkill
- plan-milestoneSkill
- plan-taskSkill
- quick-taskSkill
- reassess-roadmapSkill
- reconcileSkill
- resume-sessionSkill
- retroSkill
- shipSkill
- slice-milestoneSkill
- software-craftsmanshipSkill
- spawn-milestone-teamSkill
- summarize-taskSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- verification-before-completionSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
If you were dispatched as an Agent Teams teammate to execute a specific slice or task, skip this skill -- your scope is bounded by the task …
- Very specific: line 20
If you think there is even a 1% chance a ytstack skill applies to what the user asked, you ABSOLUTELY MUST invoke the skill via the Skill …
- Very specific: line 22
IF A YTSTACK SKILL APPLIES, YOU DO NOT HAVE A CHOICE.
- Very specific: line 35
.ytstack/artifacts are user-owned: Never delete, move, truncate or revert them on your own judgement -- not even obvious leftovers such …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Using ytstack
<SUBAGENT-STOP>
If you were dispatched as an Agent Teams teammate to execute a specific slice or task, skip this skill -- your scope is bounded by the task plan the lead gave you.
</SUBAGENT-STOP><EXTREMELY-IMPORTANT>
This project uses ytstack. A hook has injected project state into your context and you have access to ytstack's skills via the `Skill` tool.If you think there is even a 1% chance a ytstack skill applies to what the user asked, you ABSOLUTELY MUST invoke the skill via the Skill tool BEFORE any other action.
IF A YTSTACK SKILL APPLIES, YOU DO NOT HAVE A CHOICE. USE IT.
This is not negotiable. This is not optional. You cannot rationalize your way out of this.
</EXTREMELY-IMPORTANT>
Instruction priority
User instructions always take precedence:
- User's explicit instructions (
CLAUDE.md, direct messages) -- highest priority. If the user says "skip ytstack for this change", honor it. - ytstack skills -- override default agent behavior when they apply.
- Default agent behavior -- lowest priority.
.ytstack/ artifacts are user-owned. Never delete, move, truncate or revert them on your own judgement -- not even obvious leftovers such as draft summary stubs or stale plans. The only sanctioned cleanup is ytstack:reconcile, which asks per class and archives instead of deleting.
The rule
Invoke the relevant ytstack skill BEFORE any response or action. Each skill's frontmatter description field states when to use it. Match the user's intent against the descriptions semantically -- not against keyword lists or canonical phrasings. If any skill's description plausibly covers the situation, invoke it via the Skill tool to confirm. If the invoked skill turns out to be the wrong fit, that is fine; what is NOT fine is skipping the check.
Skills you might need (consult each skill's description, not this list, for the actual when-to-use):
- Project lifecycle:
init-project,adopt-brownfield,plan-milestone,slice-milestone,plan-task,summarize-task,reassess-roadmap - Session continuity:
handoff-session,resume-session - Planning reviews:
office-hours,plan-ceo-review,plan-eng-review - Execution discipline:
test-driven-development,systematic-debugging,verification-before-completion,quick-task(one-sentence changes when PREFERENCESquick_laneis on) - Review + release:
code-review(after a task's commits, before summarize-task),finish-branch(merge / PR / keep once the slice is closed on paper),ship(gstack release flow),retro(after a milestone closes),document-release(changelog + release notes for a version),grill(question an idea between office-hours and plan-milestone) - Orchestration:
spawn-milestone-team
The selection mechanism is semantic, not phrase-based. New user phrasings (different language, paraphrase, domain-specific vocabulary) should still trigger the right skill as long as the intent is covered by a description.
Skill priority (when multiple could apply)
- Process skills first (office-hours, plan-ceo-review, systematic-debugging). They determine whether / how to proceed.
- Structural skills next (plan-milestone, slice-milestone, plan-task). They determine what to build.
- Execution skills last (TDD, verification). They determine how to build.
"Let's build X" (greenfield, no pitch yet) -> office-hours first. "Fix this bug" -> systematic-debugging first. Existing codebase (README, docs, commits) with no .ytstack/ -> adopt-brownfield first, never the pitch. A change the user states in one sentence with a known cause ("rename X", "bump Y", "fix the off-by-one in Z") in a .ytstack project with quick_lane: on (PREFERENCES default) -> quick-task, not plan-task.
Red flags -- stop and invoke
These thoughts mean STOP, you're rationalizing:
| Thought | Reality |
| "This is just a simple question" | Questions are tasks. Check for skills. |
| "I already know what they want" | Invoke the skill to be sure. |
| "Skills are overkill for this" | ytstack's skills handle simple cases fast. Use them. |
| "I'll just fix it directly" | Direct fixes bypass verification + scope checks. Use the skills. |
| "The plan is obvious" | Plans feel obvious until you write them down. Use plan-task. |
| "Let me read the files first" | Skills tell you which files to read. Check first. |
| "I'll figure it out as I go" | ytstack exists because "figure it out" loses context across sessions. |
Process flow (what happens on every user message)
digraph using_ytstack {
"User message received" [shape=doublecircle];
"Match intent against skill descriptions" [shape=box];
"Any skill plausibly applies?" [shape=diamond];
"Invoke Skill tool" [shape=box];
"Follow skill exactly" [shape=box];
"Respond directly" [shape=doublecircle];
"User message received" -> "Match intent against skill descriptions";
"Match intent against skill descriptions" -> "Any skill plausibly applies?";
"Any skill plausibly applies?" -> "Invoke Skill tool" [label="yes, even 1%"];
"Any skill plausibly applies?" -> "Respond directly" [label="definitely not"];
"Invoke Skill tool" -> "Follow skill exactly";
"Follow skill exactly" -> "Respond directly";
}After invoking a skill
Follow its Checklist exactly. Create TodoWrite entries per item. Don't improvise steps. The skill's Terminal State section tells you what to do next -- respect it; don't auto-invoke the suggested follow-up skill unless the user explicitly asks for it, or the project's PREFERENCES.md says autonomy: loop (the default), in which case the execution skills inside a slice (plan-task -> test-driven-development -> verification-before-completion -> summarize-task) chain without asking and stop at the slice boundary.
Reporting ytstack issues
If a ytstack skill, hook, or artifact misbehaves (the wrong skill fires, a hook errors, an artifact gets mangled), surface it to the human and suggest filing an issue at https://github.com/Yesterday-AI/ytstack/issues. Do not silently work around a ytstack bug -- a one-line report keeps the stack sharp.
Summary
ytstack is active. Each skill's description field is the source of truth for when to invoke it. Match semantically, invoke proactively, follow the skill's checklist exactly, never auto-chain.
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.

