resolve-project
Skill1 starsChanged 3 months agoMITView on GitHub
Resolve project's multi-scope issues and inconsistencies across instruction files, code, documentation, context, and real-world facts. Use when the user manually invokes or says "resolve project", "centralize repo", "update docs", "sync docs", "audit project issues", etc, NOT for a priority lookup.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- add-sourceSkill
- analyze-videoSkill
- archive-projectSkill
- clean-projectSkill
- code-standardsSkill
- global-heartbeatSkill
- map-projectSkill
- notes-heartbeatSkill
- researchSkill
- sleepSkill
- test-projectSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 10 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Update and fix a project's code, documentation and gauge alignment with goals and instruction files.
- Distinctive: line 12
Follow the workflow outlined below to identify issues and inconsistencies between my goals, the codebase, and documentation.
- Very specific: line 25
Follow this (not the Precedence hierarchy in $VAULT/.claude/CLAUDE.md) when resolving an issue_item that is a conflict with no obvious …
- Distinctive: line 27
Real-world facts: Must be a relevant, verified fact (reputable and up-to-date source, or basic knowledge), that causes an objective …
- Distinctive: line 29
Project agent instruction files: if present.
- Very specific: line 66
Final pass: Run 2.7, then confirm all non-deferred issue_items were resolved, code works, changes didn't compromise behavior, and comments …
- Distinctive: line 73
Comments: Start with inlined, smaller comments, then move to doc comments and function headers, then to module-level comments.
- Very specific: line 75
Determine necessity of
docs/market-analysis.md: If deemed unnecessary and exists, use AskUserQuestion tool to ask to remove it. - Very specific: line 76
docs/masterdoc.html: Use the any updated documentation to assist. - Very specific: line 78
Update
docs/branch-diff.md: if working in a branch other than main. - Distinctive: line 85
Version-agnosticism: Write the present state, never the diff.
- Distinctive: line 87
Instead: describe current behavior in present tense and stop.
- Distinctive: line 91
Prose minimalism: Avoid flowery language, adhering to global agent voice instructions.
- Very specific: line 92
Fix improper schemas: If a ~/Notes page or docs/ folder does not have the proper layout (missing/extra files or sections, wrong placement, …
- Distinctive: line 116
Write for commercial success, academic/research contribution, job-recruitor appeal, or open-source adoption based on project priority/goal.
- Very specific: line 127
Table-of-contents sync: every block id has a matching .toc a link and the reverse.
- Very specific: line 131
Write $VAULT/projects/<Name>.md after the in-repo documentation, and summarize what those docs already establish.
- Very specific: line 138
priorityandstatus: never written without permission. - Distinctive: line 143
Every count, module name, CLI flag, and measured number matches the code.
- Very specific: line 144
No changelog voice anywhere.
≈ “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
resolve-project
Update and fix a project's code, documentation and gauge alignment with goals and instruction files. Follow the workflow outlined below:
1. Audit project-wide state
Follow the workflow outlined below to identify issues and inconsistencies between my goals, the codebase, and documentation. If there a minimal, or no issues present, don't invent any to satisfy these instructions:
- Goals and directives. Agent instruction files and the
code-standardsskill are written by me with specific instructions, working conventions, stylistic preferences, and high-level goals (e.g. minimalistic code, lowercase inline comments, no hard-wrap on.mdfiles, concise comments, etc). Use them as anchors when evaluating alignment between the codebase, documentation, and my goals/vision. - Codebase state. Perform a repo-wide code scan using the
map-projectskill, diagnose any test errors or unexpected/undesired behavior with thetest-projectskill. Verify the file structure and modularity adheres to the standards in agent instruction files and theclean-projectskill. Writecode-map.mdto a temporary scratchpad. - Documentation state. Perform a wide documentation scan and assess its current state, and any deviations from documentation guidelines below and examples in
references/. - Compile issues by identifying inconsistencies between sections
1,2, and3, at scopes ranging from targeted, to structural, to high-level project goal-alignment. Include bugs/gaps/smells fromcode-map.md, issues fromtest-project, and documentation deviations found in step 3. Ensure every issue is deduped. A compiled issue will be referred to as anissue_item. - Propose
resolutionsto allissue_items. For non-obviousresolutions, followPrecedence hierarchy. Writeconsistency-audit_{date: MM-DD}.htmlto the session scratchpad, followingConsistency audit document guide, and give me the path to open. In chat, give the score and theissue_itemcount only. - Stop the turn and wait for permission to proceed. I answer from the foot of the page:
Selected:lists theresolutionsto apply,Deferred:lists theissue_itemsto leave untouched this pass. Anissue_itemin neither list is unanswered, so ask about it. If I decide on aresolutionaddition or edit, change the page and set its selection there too, so the page stays the record.
Proceed to 2. Resolution implementation once all issue_items are approved as either resolved or deferred.
Precedence hierarchy
Follow this (not the Precedence hierarchy in $VAULT/.claude/CLAUDE.md) when resolving an issue_item that is a conflict with no obvious resolution. If a precedence tier is not relevant to the conflict, move to the next tier. Ordered from highest-to-lowest precedence. Start at tier 1, the highest tier wins:
- Real-world facts. Must be a relevant, verified fact (reputable and up-to-date source, or basic knowledge), that causes an objective contradiction, not a style, format, or preference discrepancy.
- User decisions, statements, and referenced documents from this session.
- Project agent instruction files if present.
- Global agent instruction files and
code-standardsskill. - Codebase and
code-map.mdare the most comprehensive sources to compare with docs. - Documentation. The Notes document,
README.md,docs/folder, comments.
Consistency audit document guide
The audit is one self-contained HTML page. Copy references/consistency-audit_example.html and replace only its content: the title, the score, the intro, and the table rows. Keep its CSS and its script exactly as they are. Do not restyle it, and do not add a framework, a library, or an external asset.
- Title: "
{project_name}Consistency Audit,{date: MM/DD}", in both<title>and the<h1>. - Intro. An objective consistency score out of 100% (e.g.
Consistency: 34%) followed by the reasoning behind it. This is the TLDR. - Table. One row per
resolution. The threeissue_itemcells carryrowspan="{n}"on the group's first row, wherenis that issue'sresolutioncount, so each issue reads as one tall block. Continuation rows omit those three cells. A single-resolutionissue needs norowspan.- Cells for
issue_itementries, each carryingclass="iss"anddata-issue="{n}"so the whole block is one defer target:- Issue index: empty header.
issue_itemnumber, starting at 1. - Issue:
issue_itemname, 3-8 words. As specific as possible. - Description: <30 words, explain why it's an
issue_item.
- Issue index: empty header.
- Cells for
resolutionentries, each carryingclass="res"so selection tints them:- Resolution index: empty header.
{issue_item}.{resolution}, numbered from 1 within eachissue_item(e.g. 2.1, 13.5). - Resolution: a potential fix or reconciliation to the
issue_item. - Scope: blast radius of the
resolution, and any adjacent/subsequent changes or refactors. - Confidence: out of 10, an integer or a.5. Based in
Precedence hierarchyand expectedresolutioneffectiveness.
- Resolution index: empty header.
- Order
issue_itemsby scope size: surgical -> high-level goal. - Order
resolutionsby confidence: high -> low, within eachissue_item. - Every
resolutionrow carriesdata-issueanddata-res. The script keys off both; a row missing either is unclickable. - Give the first row of each group
class="sel", so the highest-confidenceresolutionstarts selected. - Both handlers bind to cells, never to the row, so an
issue_itemclick and aresolutionclick stay independent.
- Cells for
- Escape
<,>, and&in cell text, and wrap file and symbol names in<code>.
How I answer with the page. Clicking a resolution selects it, clicking it again clears it, and clicking another in the same issue_item moves the selection, so at most one resolution per issue_item is ever live. Clicking anywhere in an issue_item block defers it: the block turns red, its selection clears, and its resolutions grey out and stop responding. Clicking it again reverts the defer and restores the highest-confidence resolution. The foot of the page reports both lists, and those are what I hand back.
2. Resolution implementation
Perform a comprehensive and thorough implementation of all approved resolutions to their issue_items. Use the code-standards skill and follow this workflow:
- Implement all code and non-documentation
resolutions, then reruntest-projectand iterate until the project works and behaves properly. If you get stuck or need to make a big, unapproved change, stop and inform me of: what you want to do, why it is necessary, and how it affects behavior, execution, and the rest of the codebase. Use AskUserQuestion to get approval. - Consider how those code changes affect the remaining
issue_itemsand theirresolutions. If there is a non-trivial or non-obvious change to any, stop and use AskUserQuestion to ask me for approval. - Update documentation according to
2.1-2.6. - Final pass. Run
2.7, then confirm all non-deferredissue_itemswere resolved, code works, changes didn't compromise behavior, and comments are clean. Paste any unresolved open items and every deferred or unresolvedissue_itemin chat. - Git. Stage and name a git commit, but do not commit or push before approval (AskUserQuestion, Yes/No options). If approved, commit with a sensible name and no self-attribution, then push to main, removing
docs/branch-diff.mdin the process (keep in final branch commit).
2.1. Advised documentation workflow
Implement documentation resolutions with scopes in the order listed below, applying 2.2-2.6, comment guidelines in code-standards, and the global agent voice instructions. This order is not strict, treat it as a suggestion; override order if it makes sense to deviate from it:
- Comments. Start with inlined, smaller comments, then move to doc comments and function headers, then to module-level comments.
docs/technical-spec.md. Paste an editedcode-map.mdwith any changes from memory and the consistency audit in addition to verifying again against the actual code.- Determine necessity of
docs/market-analysis.md. If deemed unnecessary and exists, use AskUserQuestion tool to ask to remove it. If kept, rewrite it; if removed, remove it. docs/masterdoc.html. Use the any updated documentation to assist.- Rewrite
README.md. - Update
docs/branch-diff.mdif working in a branch other than main. If it exists - Notes document. Change appropriate sections, and use any completed and deferred
issue_itemsorresolutions, alongside any other todos, to update the open items properly. Evaluatestatusandpriority, propose suggested changes, and write the frontmatter values yourself only once approved.
2.2. Global documentation guidelines
General principles to be applied when writing any non-comment documentation:
- Version-agnosticism. Write the present state, never the diff. Docs should read as if written today, from scratch, against the source of truth that exists right now. A reader must not be able to tell anything changed.
- Banned: "now", "previously", "no longer", "as of", "recently", "added", "removed", "renamed", "migrated", "updated to", "we changed", "in the current version", changelog bullets, version numbers attached to features, and dates that mark a change rather than a fact.
- Instead: describe current behavior in present tense and stop. A feature that exists is described as existing. A feature that was deleted goes unmentioned.
- Wrong: "The pipeline now uses 13 failure causes (up from 11), and the old
flip.pyhas been merged intoquery.py." - Right: "The pipeline uses 13 failure causes. The query lives in
query.py." - History lives in git. This rule beats the instinct to be helpful about it inside a doc.
- Prose minimalism. Avoid flowery language, adhering to global agent voice instructions.
- Fix improper schemas. If a
~/Notespage ordocs/folder does not have the proper layout (missing/extra files or sections, wrong placement, etc), resolve the issue unless explicitly stated as intentional.
2.3. Per-document instructions
Consult the following table when writing README.md, docs/technical-spec.md, docs/market-analysis.md, docs/masterdoc.html, and the Notes document. references/doc-shapes.md holds the section structures my existing docs actually use, sampled from $PROJECTS; read it for shape, then let the project's content decide its own sections.
| Document | Audience | Purpose | Instructions | Example |
README.md | GitHub users, SWE recruiters, academic/open-source community | The hook that engages anyone visiting my repo. | Forward-facing orientation document that is uniquely built, easy to read, and properly explains my project, its utility, and how to use it. | references/readme_example.md |
docs/technical-spec.md | Agentic systems and dedicated open-source maintainers | Provide detailed and accurate picture of the repo. Standard: agents should be able to accurately rebuild repo from scratch without any other project sources. | Extremely comprehensive system-accurate spec. Derive from code-map.md and consistency changes. Optimize for agent-readability | code-map.md (scratchpad) |
docs/market-analysis.md | Builder or business creator/managers. | Deep market research to be consulted when making a project-scope decision. | Include the verdict, use-case(s), competition, users, willingness to pay, defensibility, legal risk/constraints, etc, and how they shape path-to-market. Cite sources like market supply/demand indicators, statutes, metrics, and prior art/products. Pull each source with defuddle parse <url> --md rather than fetching raw pages, and fall back to agent-browser when it returns empty. Include at P1-3 only. | references/doc-shapes.md |
docs/masterdoc.html | Builders, contributors, inexperienced readers with no domain/project knowledge | Communicative document giving a high-level, first-pass overview and teaches the user how the project works on a conceptual level (P0-2), or a business-model level (P2-3). | Synthesizes the codebase and other docs into a .html file at three reading depths: Simple, Analogies, and Technical. See 2.5. Masterdoc for more details. | references/masterdoc_example.html |
$VAULT/projects/<Name>.md | Agents, builder, contributors, advisors. | Agents scouting the project from another folder, or analyzing all projects en masse. Builder or advisors/contributors quickly and intuitively understanding a project or deciding how to move forward. | Durable and present tense: what it is, decisions that stand with their reasons, what was measured and rejected, the market read. See 2.6. Notes document for more details. | $VAULT/projects/Spectra.md |
2.4. Priority-specific approach
Documentation for docs/masterdoc.html, docs/market-analysis.md, and the Notes document are multifunctional depending on priority. A sandbox (P0) is for learning purposes; a business (P3) needs distribution polish. Write these docs based on priority matrix outlined below, following specified instructions in addition to the per-document instructions:
| Priority | Approach |
| 0 (sandbox, research, hobby) | Unique/interesting aspects, teach advanced concepts. No market-analysis.md. |
| 1-2 (portfolio, research tools) | Utility and use cases, unique aspects, and advanced conceptual overview. market-analysis.md should analyze potential interest/adoption from the research, academic, open-source communities, and its portfolio/resume value given my background and other projects. |
| 3 (business, commercial) | Commercially-focused docs/market-analysis.md with a forward-facing docs/masterdoc.html and Notes document including use-cases and market analysis. |
Write for commercial success, academic/research contribution, job-recruitor appeal, or open-source adoption based on project priority/goal.
2.5. Masterdoc
references/masterdoc_example.html sets the bar, not the skin. Its space-to-black-hole journey is what a masterdoc for axiom looks like, derived from that project's own subject. Every masterdoc matches its ambition, its structure, and its mechanics, and earns its own art.
Derive the art from the project. Read what the thing actually does, take the visual metaphor from its own domain, and let that one metaphor drive the palette, the motion, and the imagery together. A financial model gets blueprint grids and ledger rules; a privacy tool gets fog and redaction; an effects engine gets its own output as the background. When nothing in the domain suggests a metaphor, a restrained dark page with one accent beats a borrowed theme. Never reuse the space theme on a project that has nothing to do with space, and never ship the default look twice in a row.
- The design system: the
:roottokens, the topbar, the reading-progress bar, the table-of-contents aside, and the scroll and nav JS. The example drives everything off one scroll variable,--tfrom 0 to 1 on the root, withcolor-mixinterpolating each colour and layered elements translating at different rates for parallax. Keep that scroll-driven spine and re-theme what it interpolates toward. Motion always collapses underprefers-reduced-motion, and the page stays self-contained: styles and scripts inline, assets embedded, no framework and no external request. - The three reading depths. Each block carries a
.plainelement that is always visible (Simple), an optional<details class="layer analogy">that opens atAnalogiesand up, and an optional<details class="layer technical">that opens atTechnical. New content follows the same layering. - The part and block structure: parts as
<div class="part-head" id="partN">, each holding<section class="block" id="...">sections. A project uses as many parts as its content needs. - Table-of-contents sync: every block id has a matching
.toc alink and the reverse. Add, rename, and remove links alongside sections so the two stay one to one.
2.6. Notes document
Write $VAULT/projects/<Name>.md after the in-repo documentation, and summarize what those docs already establish. It is durable and present tense: no changelog, no dated entries, no "originally". History lives in the git log.
- What it is: rewrite to match the reconciled docs. Rebuild it from the code when the document and the code disagree.
- Decisions that stand: each with its reason, since a decision without one gets re-litigated.
- Measured and rejected: the numbers, and what they ruled out. This is what stops a dead approach being re-attempted.
- Open problems: lingering, systemic issues that no single prompt solves.
repoandgit: correct them when they are factually wrong.priorityandstatus: never written without permission. Propose each change with AskUserQuestion, and set it yourself only once approved.- Its line in
projects/README.mdupdates in the same edit, per$VAULT/.claude/rules/notes.md.
2.7. Verify before finishing
- Every count, module name, CLI flag, and measured number matches the code.
- No changelog voice anywhere. Grep your own output for the words banned in
2.2. - Internal links and masterdoc anchors resolve; table-of-contents links and block ids are one to one.
- Toggling the masterdoc through
Simple,Analogies, andTechnicalreveals the right layers.
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.

