graphify
GRGraphify-Labs/graphify156k2,564 new stars in the last 7 days
Drive the @swamp/issue-lifecycle model for interactive issue triage and plan iteration against swamp-club lab issues. Use when the user wants to triage a swamp-club issue, generate an implementation plan, or iterate on a plan with feedback. Also handles retroactive lifecycle creation for ad-hoc work via "prepare to ship", carrying several issues through one lifecycle when the same work fixes them (link_issue), and shipping a duplicate of an already-shipped issue with its fix instead of closing it (mark_duplicate). Triggers on "triage issue", "triage #", "issue plan", "review plan", "iterate plan", "approve plan", "issue lifecycle", "prepare to ship", "ready to ship", "link issue", "link #", "also fixes #", "fixed by the same change", "mark duplicate", "duplicate of #", "same issue as #", "close as duplicate".
Interactive triage and implementation planning for swamp-club lab issues using
the @swamp/issue-lifecycle extension model. This skill drives the model
conversationally — the human steers, you execute.
The model operates on swamp-club lab issue numbers. Every step records a structured lifecycle entry against the issue in swamp-club and transitions its status as the work progresses. There is no GitHub integration — the issue must already exist in swamp-club before you start.
Always use the installed swamp binary. Every swamp command in this skill
must invoke the installed binary from $PATH — never deno run dev or any
other Deno-based invocation. Before running any swamp command, verify the binary
exists:
which swamp
If which swamp fails (binary not found), stop immediately and tell the
human: "The swamp binary is not installed or not on your PATH. Install it
before continuing." Do not fall back to deno run dev.
The commands below use swamp behavior run, which needs a current binary. If it
reports an unknown command, run swamp update first.
Never auto-approve. Always stop and show the plan to the human. Always ask
for feedback. Only call approve when the human explicitly says to proceed.
A failed method means the upstream record was not written. Lifecycle entries are the audit trail, so a method fails rather than reporting success over a dropped entry. The error names the step, the HTTP status, and swamp-club's own reason.
notify does not roll back. If it fails after the ripple posted, the
phase has already advanced — do not re-run it, or the contributor is thanked
twice. Continue with summarize.post_attestation warns instead of failing. The attestation itself is the
durable record, and re-running would file a duplicate for the same commit. The
warning names the attestation id.The most common cause is payload text the server refuses: until swamp-club#2284 is fixed, it rejects any string value that begins with a dollar sign, and any prose containing a double-quote immediately followed by one — a quoted shell variable in a code snippet, for example. Rephrase the text (name the variable in words) and re-run.
When the user says "prepare to ship" (or "ready to ship", "prepare to ship this work"), they have completed ad-hoc work that is not linked to an existing issue. The lifecycle still needs a tracking issue for verification and attestation to flow through.
This flow is fully automatic — do not ask for confirmation at each step.
Summarize the work. Inspect the current branch: git log main..HEAD,
git diff --stat main..HEAD. Build a title and summary from the commits and
changed files.
Create a tracking issue in swamp-club. There is no swamp issue create —
pick the type-specific subcommand (feature, bug, or security). The CLI
cannot file platform issues, so classify ad-hoc work as feature or bug:
swamp issue feature --title "<title>" --body "<summary of work done>" --json
Read number from the JSON output — that is <N> in every command below.
--body requires --title; without both, the command opens an editor.
Start the lifecycle:
swamp behavior run @swamp/issue-lifecycle start issue-<N> --input issueNumber=<N>
Fast-forward to implementing:
swamp behavior run @swamp/issue-lifecycle fast_forward issue-<N> \
--input summary="<summary>" \
--input steps='<JSON array of plan steps>' \
--input testingStrategy="<testing approach>"
Build the plan steps retroactively from the actual work — each step should describe a logical unit of change with its files. The testing strategy should reflect how the changes were validated.
Transition to verifying. fast_forward leaves the lifecycle at
implementing, and post_attestation is only accepted from verifying — so
this transition is required, not optional:
swamp behavior run @swamp/issue-lifecycle verify issue-<N> \
--input commit=$(git rev-parse HEAD) \
--input branch=$(git branch --show-current)
Proceed with normal verification. Read
references/verification.md and continue from
its step 2 (Run Verification) through verification_passed → code conformance
review → post_attestation → link_pr. Step 1 there is the verify call just
made — do not repeat it. fast_forward writes no conformance review; it is
recorded after verification passes, as for any other issue.
Drive the lifecycle to done. link_pr only reaches pr_open — it is
not the end of the flow, and stopping there leaves the issue parked. Run
watch_pr right after it: on a merge it runs pr_merged (→ shipped),
notify and summarize (→ done) itself. See section 4b of
references/implementation.md.
User: prepare to ship this work
Agent:
1. git log main..HEAD → "Add retry logic to HTTP client"
2. swamp issue feature --title "Add retry logic to HTTP client" --body "..." --json
→ {"number": 247, ...}
3. swamp behavior run @swamp/issue-lifecycle start issue-247 --input issueNumber=247
4. swamp behavior run @swamp/issue-lifecycle fast_forward issue-247 \
--input summary="Add exponential backoff retry to HTTP client" \
--input steps='[{"order":1,"description":"Add retry wrapper","files":["src/http/client.ts"]}]' \
--input testingStrategy="Unit tests for retry logic added in client_test.ts"
5. swamp behavior run @swamp/issue-lifecycle verify issue-247 \
--input commit=$(git rev-parse HEAD) --input branch=$(git branch --show-current)
6. Proceed to verification (references/verification.md, from step 2)...
When the work for one issue also fixes another, or an issue duplicates one that
is already fixed, never close the extra issue. Read
references/linked-issues.md and use link_issue
on the primary issue's lifecycle, or mark_duplicate on the duplicate's own
lifecycle when the other issue has already shipped. Linked issues move through
status with the primary issue and ship with it.
This skill reads repo-specific conventions from agent-constraints/ at the
repository root. If these files exist, they customize how each phase works:
agent-constraints/adversarial-dimensions.md — review criteria and dimensionsagent-constraints/planning-conventions.md — analysis and documentation
requirementsagent-constraints/triage-conventions.md — codebase exploration and bug
reproductionagent-constraints/code-conformance-dimensions.md — code vs plan review
criteriaagent-constraints/implementation-conventions.md — build, verify, and PR
conventionsagent-constraints/verification-conventions.md — verification workflow
configurationIf these files do not exist, the skill uses generic defaults documented in each reference file.
Each phase has detailed instructions in a reference file. Read only the reference you need for the current phase.
Read references/triage.md when starting a new triage or
resuming an issue in the triaging phase. Covers: starting the lifecycle (using
direct type execution to auto-create the model and fetch issue context in one
command), reading the codebase, classifying the issue, and reproducing bugs.
The first command to run is always the existence check:
swamp data query 'modelName == "issue-<N>" && name == "state-main"' --select content --json
results has an entry, the model already exists — check
results[0].phase and go to the "Resuming a Session" table below. Do NOT
call start.results is empty (model or data not found), the issue is new — run:swamp behavior run @swamp/issue-lifecycle start issue-<N> --input issueNumber=<N>
This fetches the issue from swamp-club and writes context automatically — do NOT
use gh issue view or any other mechanism to fetch issue data.
Read references/planning.md after triage is complete. Covers: generating the implementation plan, applying repo-specific planning conventions, and presenting to the human.
Read references/adversarial-review.md
immediately after every plan or iterate call — no exceptions. Planning
and adversarial review are always paired: you never present a plan without
running the review first. Covers: challenging the plan across repo-specific
dimensions, verifying against the codebase, recording findings, presenting to
the human, and the iteration loop until approval.
Read references/implementation.md after plan approval. Covers: signalling implementation start and doing the work.
Read references/verification.md after the code is written. This runs the same checks as CI (lint, test, compile, agent reviews) as host workflows before the PR opens. The agent iterates — fixing failures and re-verifying — until all steps pass.
Read
references/code-conformance-review.md
after verification_passed. This is the last gate before the PR: it
compares the verified commit against the approved plan and records every
deviation, each with a justification. It never changes code. post_attestation,
link_pr and complete refuse until the verified commit has a fully justified
review.
watch_pr runs notify itself after a merge. Run it by hand after a manual
pr_merged or complete, or when watch_pr stopped at notify. It checks the
author against the swamp-club team roster itself: team members are skipped,
anyone else is thanked with a ripple. Never check membership with GitHub —
swamp-club handles are not GitHub logins.
swamp behavior run @swamp/issue-lifecycle notify issue-<N>
If the lookup fails, notify posts nothing and stays in notify. Ask the
human, then re-run it, add --input force=true to thank the author anyway, or
run skip_notify.
After notify or skip_notify, the lifecycle enters the summarizing phase.
Read references/implementation.md — section 7
covers the summary step.
Restate the original problem and the delivered outcome in plain language, then
close out the lifecycle. This final check ensures the work actually addressed
the issue. All three inputs are required — summarize fails validation without
them:
swamp behavior run @swamp/issue-lifecycle summarize issue-<N> \
--input originalProblem="<problem>" \
--input deliveredOutcome="<outcome>" \
--input outcomeMet=true
If the lifecycle carries linked issues, summarize also requires
linkedOutcomes, with one entry per linked issue — see
references/linked-issues.md.
The triage method classifies issues into one of four types (matching
swamp-club):
bug — something is broken or behaving incorrectlyfeature — a request for new functionality or enhancementplatform — admin-only platform infrastructure worksecurity — security vulnerability or hardening workplatform is accepted by the triage method, but the CLI can neither file nor
switch an issue to it — swamp issue bug|feature|security and
swamp issue edit --type accept only the other three. Classify an existing
issue as platform if it fits; never try to create one.
Two additional classification details are captured in the classification record but do NOT map to separate swamp-club types:
isRegression — set to true when the bug previously worked. Implies
type: bug. Look for signals like "this used to work", "stopped working
after", or git history showing recent changes to the affected code.confidence: low and populate clarifyingQuestions. Do not guess the
type — ask the human before calling triage.To review a specific plan version:
swamp behavior run @swamp/issue-lifecycle review issue-<N> --input version=<V>
To see all behavior data:
swamp behavior output search issue-<N> --json
If the human comes back to an in-progress issue, check the current phase:
swamp data query 'modelName == "issue-<N>" && name == "state-main"' --select content --json
Read results[0].phase from the response. Do NOT call start to resume —
start unconditionally resets the phase to triaging, destroying progress.
Use this table to determine what to do next:
| Phase | Action |
|---|---|
triaging | Read references/triage.md; duplicate of a shipped issue → mark_duplicate |
classified | Read references/planning.md |
plan_generated | Read references/adversarial-review.md |
approved | Read references/implementation.md; plan needs changes → iterate |
implementing | Verify — read references/verification.md |
verifying | Finish verification; after verification_passed, run the code conformance review |
pr_open | Run watch_pr — it closes out a merge and records a failure itself (implementation.md 4b) |
pr_failed | Any code change goes through implement, verify and conformance; link_pr only re-links the same commit |
releasing | Legacy phase from before merging shipped — run complete |
notify | Run notify — it thanks external authors and skips team members by itself |
summarizing | Call summarize — needs originalProblem, deliveredOutcome, outcomeMet |
done | Nothing to do — lifecycle is complete |
The canonical phase list lives in the TRANSITIONS constant in
extensions/models/_lib/schemas.ts.
When a PR has already merged and the lifecycle just needs to be marked done:
swamp data query 'modelName == "issue-<N>" && name == "state-main"' --select content --json
The phase is results[0].phase.implementing, the merged commit still needs its gates:
verify, verification_passed, then code_conformance_review (and
justify_deviations). verification_passed needs the verification workflows
to actually run against that merged commit. Then link_pr and watch_pr
(step 3), or complete from verifying.pr_open, run watch_pr with the summary inputs — it sees
the merge, ships the issue, and walks notify and summarize to done:
swamp behavior run @swamp/issue-lifecycle watch_pr issue-<N> \
--input originalProblem="<problem>" --input deliveredOutcome="<outcome>" --input outcomeMet=true
releasing (a lifecycle merged before merging shipped),
close it out:
swamp behavior run @swamp/issue-lifecycle complete issue-<N>
notify, run notify (see Phase 5).summarizing, record the summary:
swamp behavior run @swamp/issue-lifecycle summarize issue-<N> \
--input originalProblem="<problem>" --input deliveredOutcome="<outcome>" --input outcomeMet=true
complete works from verifying (once the verified
commit has a justified conformance review), pr_open, or releasing
(transitions to notify, then notify/skip_notify, then summarize).gh to fetch issue data. All issue context comes from
swamp-club via the start method — not from GitHub. Issue authors are
swamp-club handles, so never compare them against GitHub logins.agent-constraints/planning-conventions.md if it exists.link_issue rather than closing it.deno run dev for swamp commands. All swamp invocations
must use the installed binary. Run which swamp first — if it's missing,
stop and tell the human.GRGraphify-Labs/graphify156k2,564 new stars in the last 7 days
PApaperclipai/paperclip119k1,966 new stars in the last 7 days
NEnexu-io/open-design111k1,277 new stars in the last 7 days
HEheygen-com/hyperframes94k4,558 new stars in the last 7 days
BYbytedance/deer-flow86k276 new stars in the last 7 days
BYbytedance/deer-flow86k276 new stars in the last 7 days