reconcile
Skill2 starsChanged 29 days agoMITView on GitHub
Consent-based cleanup of .ytstack/ leftovers: draft summary stubs, unfilled auto-drafts, milestones planned but never sliced, untracked .ytstack files, a .ytstack/.local without gitignore. Use when the SessionStart STATE lint reports warnings, or when the user says reconcile, clean up .ytstack, tidy the artifacts. Never deletes; the only sanctioned way to move .ytstack artifacts.
24 other projects use a version of this.
Adopted by
Most recently taken up by
- buildomator/buildomatortheir own version, first seen Nov 8, 2026
- eggs-gd/career-spacetheir own version, first seen Nov 8, 2026
- menot-you/n-soultheir own version, first seen Nov 1, 2026
- DataWithBaraa/claude-code-data-engineering-skillstheir own version, first seen Nov 1, 2026
- jbaruch/nanoclaw-hosttheir own version, first seen Oct 31, 2026
- ZenonEl/mnemotheir own version, first seen Oct 25, 2026
Used with
Projects with it also use close, brief and 4 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
HermeticOrmusSkillclose
End-of-session ritual. Captures session state, updates auto-memory, writes a session summary, then exits the session cleanly.
Also in 3 projects that use this
AnthropicSkillbrief
Generate contextual briefings for legal work — daily summary, topic research, or incident response. Use when starting your day and need a scan of legal-relevant items across email, calendar, and contracts, when researching a specific legal question across internal sources, or when a developing situation (data breach, litigation threat, regulatory inquiry) needs rapid context.
Also in 3 projects that use this
AnthropicSkillstart
Set up your bio-research environment and explore available tools. Use when first getting oriented with the plugin, checking which literature, drug-discovery, or visualization MCP servers are connected, or surveying available analysis skills before starting a new project.
Also in 3 projects that use this
nicolasestremSkillbrainstorm
Structured idea generation and solution exploration with systematic analysis.
Also in 3 projects that use this
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 3 projects that use this
- +1 more from anthropics
Other versions24 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 24
- buildomator/buildomator★ 102same name
- DataWithBaraa/claude-code-data-engineering-skills★ 84same name
- Kanevry/session-orchestrator★ 53same name
- wrg32786/aigent-os★ 25same name
- howells/fiction★ 23same name
- evist0/okf-matt-skills★ 13same name
- jovesun-lab/arcgram★ 13same name
- conorbronsdon/agent-skills★ 10same name
- eggs-gd/career-space★ 4same name
- EvildoerXiaoyy/reasonix-skills★ 4same name
14 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
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
- resume-sessionSkill
- retroSkill
- shipSkill
- slice-milestoneSkill
- software-craftsmanshipSkill
- spawn-milestone-teamSkill
- summarize-taskSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-ytstackSkill
- verification-before-completionSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 117
Use AskUserQuestion once per class, in this order: draft stubs, unfilled auto-drafts, planned-never-sliced milestones, untracked files, …
“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
reconcile
Leftovers accumulate in .ytstack/ the moment a project runs for a while: an interrupted task leaves a draft stub, a hook drafts a summary nobody fills, a milestone gets planned and then overtaken, a worktree leaves untracked files. This skill finds them, shows them, and asks. It archives; it never deletes.
Anti-Pattern: "These stubs are obviously ceremony, I'll just delete them"
An agent once deleted 13 draft summaries in a consumer repo because they looked like noise; the user had been using them as the only record of which tasks had started. .ytstack/ artifacts are user-owned. The cost of asking is one question per class; the cost of guessing is lost history and a furious user. Archive, never delete; ask, never assume.
Checklist
You MUST create a TodoWrite task for each of these items and complete them in order:
- Run preamble -- counts and file lists per leftover class
- HARD-GATE --
.ytstackpresent; nothing to do -> report and stop - Per class: ask -- close / archive / keep (one AskUserQuestion per non-empty class)
- Apply -- moves inside
.ytstack/only, status edits, gitignore block - Write
RECONCILE-<date>.md-- what was found, what was chosen - Report + return
Process Flow
digraph reconcile {
"Run preamble" [shape=box];
"Anything to reconcile?" [shape=diamond];
"Report: clean" [shape=doublecircle];
"Ask per class" [shape=box];
"Apply (archive / close / keep)" [shape=box];
"Write RECONCILE log" [shape=box];
"Report + return" [shape=doublecircle];
"Run preamble" -> "Anything to reconcile?";
"Anything to reconcile?" -> "Report: clean" [label="no"];
"Anything to reconcile?" -> "Ask per class" [label="yes"];
"Ask per class" -> "Apply (archive / close / keep)" -> "Write RECONCILE log" -> "Report + return";
}Preamble
# ytstack resolver (M016): checkout = where this shell runs, via the shared lib.
_LIB="${CLAUDE_SKILL_DIR}/../../hooks/lib/git-ctx.sh"
if [ -f "$_LIB" ]; then
. "$_LIB"; yt_git_ctx "$PWD"; yt_resolve_yt_dir >/dev/null
_PROJECT_DIR="$YT_TOPLEVEL"; _YT_DIR="$YT_DIR"; _YT_SCOPE="$YT_SCOPE"; _IS_GIT="$YT_IS_GIT"; _PROJECT_KEY="$YT_REPO_KEY"
else
# Host did not substitute CLAUDE_SKILL_DIR (e.g. Codex adapter): project scope only.
_IS_GIT=$([ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = true ] && echo yes || echo no)
_PROJECT_DIR=$(git rev-parse --show-toplevel 2>/dev/null || pwd -P)
_YT_DIR=""; _YT_SCOPE=none; _PROJECT_KEY=""
[ -d "$_PROJECT_DIR/.ytstack" ] && { _YT_DIR="$_PROJECT_DIR/.ytstack"; _YT_SCOPE=project; }
fi
cd "$_PROJECT_DIR" 2>/dev/null || true
_PROJECT_SLUG=$(basename "$_PROJECT_DIR")
_HAS_YTSTACK=$([ -n "$_YT_DIR" ] && echo yes || echo no)
_DRAFT_STUBS=""; _UNFILLED=""; _NEVER_SLICED=""; _UNTRACKED=""; _LOCAL_DIR=no; _LOCAL_IGNORED=no
if [ -n "$_YT_DIR" ]; then
_DRAFT_STUBS=$(grep -l '^closed: draft' "$_YT_DIR"/*-SUMMARY.md 2>/dev/null)
for _f in $(grep -l '^source: post-tool-use-bash-draft' "$_YT_DIR"/*-SUMMARY.md 2>/dev/null); do
grep -q 'Fill in when task is done' "$_f" 2>/dev/null && _UNFILLED="${_UNFILLED:+$_UNFILLED
}$_f"
done
for _rm in "$_YT_DIR"/M[0-9][0-9][0-9]-ROADMAP.md; do
[ -f "$_rm" ] || continue
_m=$(basename "$_rm" -ROADMAP.md)
[ "$(sed -n 's/^status: *//p' "$_rm" | head -1)" = planned ] || continue
[ -n "$(ls "$_YT_DIR"/$_m-S[0-9][0-9]-PLAN.md 2>/dev/null)" ] && continue
_NEVER_SLICED="${_NEVER_SLICED:+$_NEVER_SLICED
}$_m"
done
if [ "$_IS_GIT" = yes ]; then
_UNTRACKED=$(git -C "$_PROJECT_DIR" status --porcelain -- "${_YT_DIR#$_PROJECT_DIR/}" 2>/dev/null | grep '^??' | sed 's/^?? //')
fi
[ -d "$_YT_DIR/.local" ] && _LOCAL_DIR=yes
git -C "$_PROJECT_DIR" check-ignore -q "${_YT_DIR#$_PROJECT_DIR/}/.local/x" 2>/dev/null && _LOCAL_IGNORED=yes
fi
_count() { local n; n=$(printf '%s' "$1" | grep -c . 2>/dev/null); printf '%s' "${n:-0}"; }
echo "HAS_YTSTACK: $_HAS_YTSTACK"
echo "DRAFT_STUBS: $(_count "$_DRAFT_STUBS")"
echo "UNFILLED_DRAFTS: $(_count "$_UNFILLED")"
echo "PLANNED_NEVER_SLICED: $(_count "$_NEVER_SLICED")"
echo "UNTRACKED: $(_count "$_UNTRACKED")"
echo "LOCAL_DIR: $_LOCAL_DIR (gitignored: $_LOCAL_IGNORED)"
echo "LISTS_BEGIN"
[ -n "$_DRAFT_STUBS" ] && { echo "[draft stubs]"; printf '%s\n' "$_DRAFT_STUBS" | head -20; }
[ -n "$_UNFILLED" ] && { echo "[unfilled auto-drafts]"; printf '%s\n' "$_UNFILLED" | head -20; }
[ -n "$_NEVER_SLICED" ] && { echo "[planned, never sliced]"; printf '%s\n' "$_NEVER_SLICED"; }
[ -n "$_UNTRACKED" ] && { echo "[untracked]"; printf '%s\n' "$_UNTRACKED" | head -20; }
echo "LISTS_END"Procedure
Step 2: HARD-GATE
HAS_YTSTACK=no: "Nothing to reconcile: no .ytstack/ here." STOP. All counts zero and LOCAL_DIR: no (or gitignored): ".ytstack/ is clean." STOP.
Step 3: Ask per non-empty class
Use AskUserQuestion once per class, in this order: draft stubs, unfilled auto-drafts, planned-never-sliced milestones, untracked files, .local dir. Template (fill the class name and the list from LISTS_BEGIN..END):
{class} -- {N} item(s) in
.ytstack/: {list}These are records of work that started, stalled or was overtaken. Closing writes the real end state; archiving keeps them out of the way without losing them; keeping leaves everything as is.
RECOMMENDATION: B for anything older than the current milestone; A when the item belongs to the active task; C when you are unsure.
A) close -- draft stubs of the active task: run
ytstack:summarize-task; other stubs/drafts: setclosed: abandoned+ one-line note; planned-never-sliced milestones:status: dropped(via the same writereassess-roadmapuses). (Completeness: 10/10, tier: core) B) archive -- move to.ytstack/archive/{YYYY-MM-DD}/(tracked), append a line to.ytstack/archive/INDEX.md. (Completeness: 9/10, tier: core) C) keep -- no change. (Completeness: 5/10, tier: core)
Untracked files use stage (git add) / archive / keep. For the .local dir without gitignore the only action is yt_ensure_gitignore "$_PROJECT_DIR" (ask yes/no).
Step 4: Apply
Moves only inside .ytstack/ (git mv when tracked, mv otherwise), edits only to frontmatter status:/closed: fields and the global ROADMAP.md rows. No rm. No edits to STATE.md pointer fields.
Step 5: Write the log
.ytstack/RECONCILE-{YYYY-MM-DD}.md: per class the items found and the choice made, plus the archive path.
Step 6: Report + return
Reconciled
.ytstack/: {N closed}, {N archived} (->archive/{date}/), {N kept}. Log:RECONCILE-{date}.md.
Terminal State
Return control after the report. Suggest ytstack:reassess-roadmap only when a milestone's status changed. Do NOT auto-invoke anything.
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.

