Repository navigation
Closed
Labels
Description
Agents working on this repository get no guidance on GitHub issues, or on what to do after opening a pull request:
- fctl's prompt (
crates/fctl-agent/src/prompt.rs) says to open a pull request withgh pr createand link the session. - Since ci: release from a workflow, with notes from Conventional Commits #21,
AGENTS.mdhas a "Commits, pull requests and releases" section,.claude/skills/commitcovers commits, pull request titles and descriptions, and the merge flow, and.claude/skills/releasecovers releases. None of them say how to handle issues or what to do once a pull request is open.
So each agent improvises. The agent in the session behind #14–#19 decided for itself to reference #1 without a closing keyword, waited for CI within its turn with gh run watch, and copied the format of #12 and #13 for new issues.
Add the rules every agent should follow to AGENTS.md, and the step-by-step procedures as Claude Code skills in .claude/skills/. Skills load on demand, so they can be detailed without lengthening every prompt.
What the instructions should cover
Issues
- Before starting: read the issue, its comments and the pull requests that mention it (
gh issue view N --comments), and check that no open pull request already covers it. - Referencing in a pull request: use
Fixes #Nonly when the pull request does everything the issue asks. Otherwise useRefs #N, so merging doesn't close the issue. - Checklists: tick an item in the issue's body only once it's done and verified, linking the evidence (pull request, session). For partial progress, add a comment saying what's done, what's left and what's blocking it.
- When to close: when everything in the issue is done and verified (a merged
Fixespull request closes it automatically), or when a person decides it won't be done. Move leftovers to new, linked issues instead of leaving them in a closed one. Ask before closing an issue the task didn't name. - New issues:
- Search for duplicates first (
gh issue list --search). - Follow the format of Hosts keep sandboxes of deleted sessions and retry their uplinks #12 and Delete a project from the web app and the CLI #13: what's wrong or missing, how it works now (with file paths), what should happen, compatibility, and the decisions a person has to make.
- Add the component labels (
host,control-plane,web,cli,release,agents) and end with the session link.
- Search for duplicates first (
- Other people's issues: add to them (a new section or a comment) rather than rewriting what's there.
- Other repositories: the session's GitHub token covers only this repository. Name what hyperstructure/fctl-site or hyperstructure/design need in the pull request or issue, and tell the person.
Pull requests, once opened
- CI: wait for it in the same turn with
gh pr checks N --watch --fail-fast(orgh run watch ID --exit-status). fctl marks the session idle when the turn ends, and nothing wakes it when CI finishes or someone reviews (React to CI failures and review comments #8 will). On a failure, readgh run view ID --log-failed, fix it, commit, and watch again. - Review comments: read them with
gh pr view N --comments, and the inline ones withgh api repos/{owner}/{repo}/pulls/N/comments. Answer each one in its thread: fix it, or say why not. - After the merge (
gh pr view N --json state,mergeCommit):- Don't push to the merged branch. Follow-ups go on a new branch from the updated base, in a new pull request.
- Tick in the issue what the merge completed.
- Changes to fctl-agent, the host or the CLI reach people with a release, so check
git tag --contains <sha>and say whether it's released yet.
Where it goes
AGENTS.md: the rules, in or next to its "Commits, pull requests and releases" section. Any agent reads it, not only Claude Code..claude/skills/issues/SKILL.mdand.claude/skills/pull-requests/SKILL.md, next tocommitandrelease, with descriptions that make Claude load them when a task names an issue and aftergh pr create. Thecommitskill's "Link issues withCloses #12" should then sayClosesonly for a pull request that finishes the issue, andRefsotherwise.- A decision for later: whether fctl's own prompt (
prompt.rs) should give every project the general rules (theFixes/Refsrule and waiting for CI). That changes what all agents are told, so the repository's skills can come first.
How to verify
- A session's
system/initevent lists the new skills (skills). - In a session on an issue with a checklist it can only partly finish, the pull request says
Refs #N, and the issue gets a status comment instead of being closed. - In a session that pushes a change that fails CI, the agent sees the failure in the same turn and fixes it.
🤖 Generated with Claude Code
Activity
fctl-sh commentedon Oct 17, 2026
Part of this is done in #21 and #25:
.claude/skills/commit/SKILL.mdcovers pull request titles (Conventional Commits, checked by theCommitsworkflow), descriptions (no tool footers; the description becomes the commit onmain), branch names, and the rule that a person merges agents' pull requests..claude/skills/release/SKILL.mdcovers releases, for agents with Actions write access (session tokens have read only).Still open here: the issue procedures (before starting,
FixesvsRefs, checklists, when to close, new issues, labels) and following a pull request after it's opened (CI, review comments). Those would fit as anissuesskill and a section in the commit skill.One conflict with the issue text: it says to end new issues with the session link. Per the maintainer, chat-session footers aren't wanted in pull requests. Links to the fctl session that did the work (app.fctl.sh/s/…) are fine.
fctl-sh commentedon Oct 18, 2026
Pull requests for every hyperstructure repository, all green:
issuesandpull-requestsskills, the AGENTS.md rules, and the commit skill'sFixes/Refschange. It saysFixes #20, so merging it closes this issue.Refs.The new component labels in design and fctl-site match fctl's.
Verified: Claude Code 2.1.296's
system/initlists the new skills in all three repositories (the first check under "How to verify").Moved to #28: the decision about fctl's own prompt (
prompt.rs), and the two checks that need real sessions (a partly finished checklist getsRefsand a status comment; a CI failure is seen and fixed in the same turn).docs: add agent rules for issues and pull requests (#3)
docs: add agent rules for issues and pull requests (#3)