Skip to content

docs: add agent rules for issues and pull requests - #29

Merged
kalaspuff merged 1 commit into
mainfrom
docs/issue-and-pr-rules
Oct 18, 2026
Merged

kalaspuff merged 1 commit into
mainfrom
docs/issue-and-pr-rules

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Agents now have written rules for issues and for what to do after opening a pull request. The rules go in AGENTS.md, which any agent reads, and the step-by-step procedures go in two new Claude Code skills next to commit and release. Skills load only when needed.

  • .claude/skills/issues/SKILL.md covers:
    • reading an issue, its comments and the pull requests that mention it before starting (gh api …/issues/N/timeline, so you see only real cross-references);
    • Fixes #N only for a pull request that does everything the issue asks, Refs #N otherwise;
    • ticking checklist items only once they're done and verified, with evidence, and posting status comments for partial progress;
    • when an issue may close, with leftovers moved to new linked issues, and asking before closing an issue the task didn't name;
    • new issues: search for duplicates, the shape of Hosts keep sandboxes of deleted sessions and retry their uplinks #12 and Delete a project from the web app and the CLI #13, the component labels, and the fctl session link but no tool footers;
    • adding to other people's issues instead of rewriting them;
    • what to do when another repository needs a change.
  • .claude/skills/pull-requests/SKILL.md covers:
    • waiting for CI in the same turn with gh pr checks N --watch --fail-fast, since nothing wakes a session afterwards until React to CI failures and review comments #8;
    • reading failures with gh run view --log-failed, fixing title failures with gh pr edit --title, and rerunning infrastructure failures once;
    • answering each review comment in its thread;
    • rebasing your own branch when main moves;
    • after the merge: not pushing to the merged branch, recording the merge in the issue, and saying whether the change is deployed, released or waiting for a release (git tag --contains).
  • AGENTS.md gets "Issues" and "After opening a pull request" sections with the rules, linking the skills.
  • The commit skill now says Fixes only when the pull request finishes the issue and Refs otherwise, and points to pull-requests after opening one.

The same rules go to hyperstructure/design and hyperstructure/fctl-site in their own pull requests, adapted to their checks and labels. Those repositories now have component labels like fctl's.

#20's "decision for later" (whether fctl's prompt gives every project these rules) is now #28, together with #20's two checks that need real sessions.

How I verified it

Claude Code 2.1.296's system/init event, started in this branch, lists commit, release, issues and pull-requests under skills. That's #20's first check. I also checked the gh commands against the API, for example the timeline query on #1, which lists #14, #15, #20 and #24.

Fixes #20

@fctl-sh fctl-sh Bot added agents Agent behavior and Claude integration documentation Improvements or additions to documentation labels Oct 18, 2026
@kalaspuff
kalaspuff merged commit 3070bd6 into main Oct 18, 2026
4 checks passed
@kalaspuff
kalaspuff deleted the docs/issue-and-pr-rules branch October 18, 2026 00:10
kalaspuff pushed a commit to hyperstructure/fctl-site that referenced this pull request Oct 18, 2026
The rules from hyperstructure/fctl#29, for this repository: how agents
handle issues, and what they do after opening a pull request.

- **`.claude/skills/issues/SKILL.md`** covers:
- reading an issue and the pull requests that mention it before
starting;
  - `Fixes` versus `Refs`;
- ticking checklists only once done and verified, and status comments
for partial progress;
  - when an issue may close, and moving leftovers to new issues;
- new issues in the shape of hyperstructure/fctl#12 and #13, with this
repository's component labels;
  - adding to other people's issues instead of rewriting them;
  - naming what fctl (where the docs' text lives) or design need.
- **`.claude/skills/pull-requests/SKILL.md`** covers:
- waiting for CI in the same turn and fixing failures, including
`shellcheck` for the installer;
  - answering each review comment in its thread;
- after the merge: not pushing to the merged branch, recording the merge
in the issue, and checking that fctl.sh deployed.
- **AGENTS.md** gets "Issues" and "After opening a pull request"
sections.
- **The `commit` skill** says `Fixes` only for a pull request that
finishes the issue.

New labels for issues: `landing`, `docs-pages`, `legal`, `install`,
`worker` and `agents`.

Claude Code's `system/init` in this branch lists `commit`, `issues` and
`pull-requests`.

Refs hyperstructure/fctl#20

Co-authored-by: fctl-sh[bot] <343971779+fctl-sh[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <[email protected]>
kalaspuff pushed a commit to hyperstructure/design that referenced this pull request Oct 18, 2026
The rules from hyperstructure/fctl#29, for this repository: how agents
handle issues, and what they do after opening a pull request.

- **`.claude/skills/issues/SKILL.md`** covers:
- reading an issue and the pull requests that mention it before
starting;
  - `Fixes` versus `Refs`;
- ticking checklists only once done and verified, and status comments
for partial progress;
  - when an issue may close, and moving leftovers to new issues;
- new issues in the shape of hyperstructure/fctl#12 and #13, with this
repository's component labels;
  - adding to other people's issues instead of rewriting them;
  - naming what fctl or fctl-site need.
- **`.claude/skills/pull-requests/SKILL.md`** covers:
  - waiting for CI in the same turn and fixing failures;
  - answering each review comment in its thread;
- after the merge: not pushing to the merged branch, recording the merge
in the issue, and saying whether the change is released and whether the
consumers moved their pin.
- **AGENTS.md** gets "Issues" and "After opening a pull request"
sections.
- **The `commit` skill** says `Fixes` only for a pull request that
finishes the issue.

New labels for issues: `tokens`, `gl`, `brand`, `playground`, `release`
and `agents`.

Claude Code's `system/init` in this branch lists `commit`, `issues`,
`pull-requests` and `release`.

Refs hyperstructure/fctl#20

Co-authored-by: fctl-sh[bot] <343971779+fctl-sh[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent behavior and Claude integration documentation Improvements or additions to documentation

Development

Successfully merging this pull request may close these issues.

Skills and instructions for agents: issues, when to close them, and watching pull requests

1 participant