agentleFS
pedrohcgspedrohcgs/claude-code-my-workflow/AGENTS.md

claude-code-my-workflow

AGENTS.md1.7k starsChanged 5 days agoMITView on GitHub

This repository was built for Claude Code. CLAUDE.md and .claude/rules/ hold its instructions, and they apply to you as well. Read CLAUDE.md before your first change. This file adds what Claude Code would otherwise enforce for you. It is written for Codex (the Codex tab of the ChatGPT desktop app, the Codex CLI, or an IDE extension), Google Antigravity, and any other agent that reads AGENTS.md or the skills in .agents/skills/. Claude Code itself reads CLAUDE.md instead, and loads this…

  • Deletes or force-pushes
  • Commits and pushes

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Sep 13: 0 new projectsWeek of Sep 20: 0 new projectsWeek of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projects
Sep 2026Oct 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about pedrohcgs/claude-code-my-workflow

The biggest 5 of 16 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 16

Talked about on GitHub and Bluesky (16 times).

On GitHub · 14

9 more on GitHub

On Bluesky · 2

The file

We split this AGENTS.md into the rules it gives an agent

10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    No destructive git: Never run git reset --hard, git clean, git push --force, git add -A / git add ., or git checkout -- .

    line 18
  2. Distinctive:

    Never discard uncommitted work.

    line 20
  3. Very specific:

    Leave the gate files alone: Do not change .claude/settings*.json, .claude/hooks/ or .githooks/ unless the user asks.

    line 22
  4. Very specific:

    Issues go through the duplicate check: Never run gh issue create or post to the issues API directly.

    line 25
  5. Very specific:

    Pull requests go to your own repository: Read git remote get-url origin and pass it to gh pr create --repo HOST/OWNER/NAME.

    line 28
  6. Very specific:

    Run ./scripts/backtest.sh.

    line 36
  7. Distinctive:

    Write commit and pull-request messages that say what is now true, and list every changed default a forker would notice.

    line 41
  8. Distinctive:

    Every name, affiliation, version number, price, date, count and URL you write must come from a source you read in this session.

    line 50
  9. Distinctive:

    If you cannot check it, leave it out or mark it unverified.

    line 52
  10. Very specific:

    Do exactly what was asked (the *Scope Discipline* section of CLAUDE.md).

    line 61

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md — working in this repository with an agent other than Claude Code

This repository was built for Claude Code. CLAUDE.md and .claude/rules/ hold its instructions, and they apply to you as well. Read CLAUDE.md before your first change. This file adds what Claude Code would otherwise enforce for you. It is written for Codex (the Codex tab of the ChatGPT desktop app, the Codex CLI, or an IDE extension), Google Antigravity, and any other agent that reads AGENTS.md or the skills in .agents/skills/. Claude Code itself reads CLAUDE.md instead, and loads this file only when a repository has no CLAUDE.md or its Project instructions setting is claude-md-and-agents-md; leave that setting at its default in this repository.

What Claude Code enforces that you must do by hand

Claude Code refuses destructive git through the deny rules in .claude/settings.json, and runs two small hooks: one before a merge, pull or rebase, one before a gh command. None of that applies to you, so follow these rules yourself:

  1. No destructive git. Never run git reset --hard, git clean, git push --force, git add -A / git add ., or git checkout -- . / git restore .; stage files by name. Never discard uncommitted work. Do not merge, rebase or pull while tracked files have uncommitted changes: commit first, or stash under a label that says what it is.
  2. Leave the gate files alone. Do not change .claude/settings*.json, .claude/hooks/ or .githooks/ unless the user asks. If they ask, make the change an ordinary diff and say so in the pull request.
  3. Issues go through the duplicate check. Never run gh issue create or post to the issues API directly. Use python3 scripts/file-issue.py --title "..." --body-file <file>. It searches open and closed issues first, and pins the repository to your origin.
  4. Pull requests go to your own repository. Read git remote get-url origin and pass it to gh pr create --repo HOST/OWNER/NAME. In a fork, a bare gh pr create targets the parent repository. The template itself, github.com/pedrohcgs/claude-code-my-workflow, accepts pull requests from its collaborators only.

Before every commit

  • Work on a branch. Never commit to main, and never merge: the user merges.
  • Run ./scripts/backtest.sh. It must pass. Once ./scripts/install-hooks.sh has been run, the git pre-commit hook runs it on every commit, whichever agent commits. Ask the user before you run the installer, because it changes the clone's git configuration.
  • For a changed .qmd, .tex or .R file, render or compile it and run python3 scripts/quality_score.py <file>. Nothing below 80 is committed.
  • Write commit and pull-request messages that say what is now true, and list every changed default a forker would notice.

Facts

The gates check that the repository agrees with itself. They cannot check that it is true. A pull request written by another agent passed every backtest gate with three wrong names of real people, a cited source that did not exist, and guessed version numbers.

  • Every name, affiliation, version number, price, date, count and URL you write must come from a source you read in this session. Give the source in the pull request.
  • If you cannot check it, leave it out or mark it unverified. Do not infer a person's name from a handle, or a version number from a pattern.
  • Current Claude model versions live only in .claude/references/model-versions.md. Everywhere else refers to tiers ("the current Opus").
  • Report what you ran and what it printed. Do not report a check you did not run.

Scope and placement

Do exactly what was asked (the Scope Discipline section of CLAUDE.md). Files go where .claude/rules/repo-hygiene.md puts them: nothing new at the repository root, and no scratch files committed. Before touching data, read .claude/rules/confidential-data.md: restricted data never leaves the machine.

Skills

.agents/skills/ holds generated wrappers for the skills in .claude/skills/ that one agent can run end to end. Each wrapper points to the real instructions. In the ChatGPT app, type @ to pick one; in the Codex CLI or IDE extension, mention one with $name or list them with /skills; in Antigravity, type /name. Where a skill hands a step to a Claude Code agent, do the step where it appears and let it gate what follows. Where that step needs a context that has not seen your work (a claim verifier that must not see the draft), use a separate session that has not seen it. If you cannot, mark its results not independently verified and say so. Skills built on several independent reviewers (such as /review-paper --peer), and skills that manage Claude Code itself, are not bridged. The list and the reason for each are in scripts/sync-agent-skills.py. To change a skill, edit .claude/skills/<name>/SKILL.md and run python3 scripts/sync-agent-skills.py. The backtest fails while a wrapper is out of date.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.