swarm-issues
Skill0 starsChanged 5 months agoMITView on GitHub
Issue-tracker output sink for swarm results - batching rules, token-file handling, GitLab/GitHub provider commands and the finding-to-issue mapping [internal: loaded by swarm-director before filing issues]
In this repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- repo-entrySkill
- swarm-directorSkill
- swarm-doctorSkill
- swarm-greenfieldSkill
- swarm-resumeSkill
- swarm-setupSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 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.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
NEVER let a token be pasted into the chat (conversations persist in transcripts/history): ask for a FILE PATH to a token file the user …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Issue tracker output (optional, director-only)
An OUTPUT SINK, never coordination. Provider from the config
(issueTracker); kind: "none" (default) = in-chat report only. Opt-in:
only when the user asks ("file these as issues") or a flow says so
(greenfield slice backlog). Tracker unusable (no config, missing token
file, no credentials) → skip tracker steps or do them locally (git init
without remote, in-chat report); never block or fail a workflow on tracker
availability.
Hard rules
- Agents NEVER touch the tracker API; the director writes issues in ONE batch AFTER the workflow completes. Anything else makes the API a bottleneck and leaks credentials into agent contexts.
- Token handling: read the token at call time from the config's
tokenFile(or wherever the target repo's CLAUDE.md says credentials live). Never on a command line (argv is visible in process listings and shell xtrace), never echoed, never in an agent prompt, never committed. Withcurl: write the header line to a private temp file and pass it by reference (-H @file/--config) —chmod 600on POSIX, anicaclscurrent-user-only grant on Windows — and delete it after the batch. With PowerShell no temp file is needed: build headers in memory,Invoke-RestMethod -Headers @{ 'PRIVATE-TOKEN' = (Get-Content $tokenFile -Raw).Trim() }. - NEVER let a token be pasted into the chat (conversations persist in transcripts/history): ask for a FILE PATH to a token file the user creates; if a token does get pasted, tell the user to treat it as compromised and rotate it.
Providers
gitlab: REST againstapiBase(defaulthttps://gitlab.com/api/v4), token as thePRIVATE-TOKENheader per the rules above. Issue create: POST{apiBase}/projects/{url-encoded path}/issues.github: prefer theghCLI when installed and authenticated (gh issue create --repo owner/name --title ... --body ... --label ...— no token file involved); otherwise REST againsthttps://api.github.com, token as theAuthorization: Bearerheader, same rules.
Mapping (provider-independent)
Review → one issue per confirmed finding (title = file:line — problem,
label per dimension, severity label); greenfield → one milestone per slice,
one issue per plan task, per repo; refactor → a single issue with the site
checklist when work is deferred. Direct REST calls or the gh CLI — no
wrapper tooling.
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.

