issue-lifecycle
Skill1 starsChanged 10 days agoApache-2.0View on GitHub
Full lifecycle of an error in GitHub Issues - record it, keep a timestamped resolution journal, document the root cause, fix through the project's PR flow, verify, close. Use when an error takes more than one attempt to understand, touches CI, deployment, security or authentication, or may come back ("erreur", "bug récurrent", "ouvre une issue", "journal de résolution"). Not for placing issues in a Project or epic (use project-tracking), a typo fixed within a minute, nor a declared security incident (use incident-response first).
- Reads credentials
2 other projects use a version of this.
Adopted by
Most recently taken up by
- systeminit/swamptheir own version, first seen Oct 8, 2026
- NorkzYT/claude-code-autopilottheir own version, first seen Jun 11, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- systeminit/swamp★ 695same name
- NorkzYT/claude-code-autopilot★ 2same name
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 repository10 other files it gives its agents.
- change-managementSkill
- dev-traceabilitySkill
- incident-responseSkill
- project-boardSkill
- project-trackingSkill
- repo-contextSkill
- repo-hardeningSkill
- secrets-hygieneSkill
- security-auditSkill
- skill-learningSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Read kind from ctx.py resolve and apply its rules.
- Very specific: line 26
No secret (password, token, key, .env content): variable names yes, values never.
- Very specific: line 27
No personal data or customer-linked amounts: mask (a*@domain), mask customer IP addresses.
- Distinctive: line 29
Write the body to a scratch file, never inline on the command line.
- Very specific: line 48
Follow the project's PR flow (CLAUDE.md, CONTRIBUTING, notes).
- Distinctive: line 51
Verify in real conditions (replay the failing scenario) and paste the result.
- Very specific: line 54
If the error returns: gh issue reopen <n>, resume at step 3, no duplicate.
≈ “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
Error → Issue → Investigation → Fix → Closure
The issue is the memory of the error: someone reading it a year later must understand it without asking anyone. The body is the living summary; the comments are the full journal, written when things happen, never reconstructed.
Context first
REPO=$(${CLAUDE_SKILL_DIR}/../repo-context/ctx.py repo) # then pass --repo "$REPO" to every gh commandRead kind from ctx.py resolve and apply its rules; writable: false means stop. Ask the user before writing if source is not gh or authenticated is false. Reuse remembered facts (label scheme, workflow) from notes.
Two choices belong to the user
- Language of what you publish: run
${CLAUDE_SKILL_DIR}/../repo-context/ctx.py langbefore writing any issue, comment or PR text. Exit 3 (unset) is a hard stop: ask the user to confirm it (propose the repository's current language), save it withctx.py lang set CODE, then write. Never infer it;journal.shrefuses to run while it is unset. - Project: resolved by
project-tracking(project.py resolve); exit 3 means ask the user to confirm the candidate or name another.
When to open
- Yes: more than one attempt to understand or fix; touches CI/deployment, security, auth, payments or backups; may recur; cause unclear.
- No: tool slip fixed within a minute, before any commit, with no lesson. When in doubt, open.
- Before opening:
gh issue list --repo "$REPO" --state all --search "<keywords>". Duplicate: comment (recurrence, new evidence) and reopen if closed.
Safety rules (non-negotiable)
- No secret (password, token, key,
.envcontent): variable names yes, values never. - No personal data or customer-linked amounts: mask (
a***@domain), mask customer IP addresses. - Pasted logs are redacted and short; over 40 lines use
<details>or a link to the run. - Write the body to a scratch file, never inline on the command line.
1. Record
- Issue repository = repository of the faulty component. Cause spread over several repositories: one issue per repository plus a short tracking issue. Unknown cause: open where it is observed, then
gh issue transfer. - Labels must exist:
${CLAUDE_SKILL_DIR}/../repo-context/ctx.py labels.
gh issue create --repo "$REPO" --title "<component>: <observable symptom>" \
--label "type:bug" --label "priority:<high|medium|low>" --body-file <file>
${CLAUDE_SKILL_DIR}/../project-tracking/project.py attach <n> --epic <epic#> --repo "$REPO" # mandatory, never skippedTitle = the symptom, not the hypothesis. Priority high if login, payments, backups, security or production are affected. Body template: references/issue-template.md. The attach step puts the issue in the Project and under an epic; no epic fits: ask the user (see project-tracking).
2. Resolution journal (mandatory, in real time)
${CLAUDE_SKILL_DIR}/journal.sh <issue#> <type> <file> [owner/repo]: UTC, refused if the text looks like a secret. Types and rules: references/journal.md. Never bypass a refusal: redact.
3. Investigate
Observe or reproduce without guessing (use the explorer agent for wide searches); one journal entry per significant step with links at the right commit and run; record dead ends; the root cause is a verified fact. Update the body with gh issue edit <n> --body-file ….
4. Fix
Follow the project's PR flow (CLAUDE.md, CONTRIBUTING, notes). Commits and PRs mention Refs #<n>. A test that failed before and passes after, or an observable verification described in the issue. Journal the action. Never commit or push without the user's request.
5. Verify, then close
- Verify in real conditions (replay the failing scenario) and paste the result.
- Complete Fix, Verification, Prevention (test, CI guard, runbook, alert, skill or CLAUDE.md update); retrospective in the journal; summary comment.
gh issue close <n> --repo "$REPO" --reason completed(or"not planned"with a justification when the risk is accepted).- If the error returns:
gh issue reopen <n>, resume at step 3, no duplicate.
Pitfalls (ignored files, chained checks and merges, destructive commands): references/pitfalls.md. A fix that reaches production also follows change-management and dev-traceability.
End of task
One line per issue: number and link, state, Project and epic, cause in one sentence. No open issue without a named next action. Log the run: ${CLAUDE_SKILL_DIR}/../skill-learning/learn.py log issue-lifecycle ok|partial|failed [--note …].
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.

