This file is for AI coding agents (Claude Code, Codex, Cursor, etc.) discovering this repository.
PyAutoPrompt is the starting point of the PyAuto workflow. Every task that
ends up as a PR in PyAutoConf, PyAutoFit, PyAutoArray, PyAutoGalaxy, PyAutoLens,
or any of the *_workspace* repos begins as a markdown file here.
For the full workflow narrative, conventions, and registry schemas, read README.md. The summary below is just enough to operate.
- Prompts —
<category>/<name>.md(free-form markdown, one task per file). Categories:autoarray/,autofit/,autogalaxy/,autolens/,autobuild/,cluster/,weak/,workspaces/,autolens_workspace_developer/,autoprompt/,z_vault/. - Registry — root-level markdown files:
active.md,complete.md,planned.md,queue.md,priority.md,ideas.md. Mutate these only via the skills inskills/so commit messages stay consistent. - Skills —
skills/<name>/are Claude Code skills/commands tightly coupled to the registry. They sourcescripts/prompt_sync.shfor commit/push. - Scripts —
scripts/status.sh(inventory),scripts/prompt_sync.sh(commit/push helpers).
- Never rewrite history on any branch with a remote. No
git initover an existing repo, nogit push --forcetomain. The 2026-04-27 drift incident that motivatedautoprompt/03_history_rewrite_guard.mdis the reason. - Pull before edit.
git fetch && git statusfirst, every time. If behindorigin/main,git pull --ff-onlybefore touching anything. Seeautoprompt/04_source_of_truth_rule.md. - One prompt = one task = one PR. If a prompt outlines multiple loosely-related changes, split into separate prompt files before issuing.
tmp/is scratch. Never commit anything under it.
Write the file under the appropriate category. Don't touch active.md or
issued/ directly — those are managed by /start_dev / /create_issue.
Use /start_dev <category>/<name>.md. It will route to /start_library or
/start_workspace based on the repos referenced in the prompt body.
Read README.md. It is current as of the last commit on this branch.
NEVER perform these operations on any repo with a remote:
git initin a directory already tracked by gitrm -rf .git && git init- Commit with subject "Initial commit", "Fresh start", "Start fresh", "Reset for AI workflow", or any equivalent message on a branch with a remote
git push --forcetomain(or any branch tracked asorigin/HEAD)git filter-repo/git filter-branchon shared branchesgit rebase -irewriting commits already pushed to a shared branch
If the working tree needs a clean state, the only correct sequence is:
git fetch origin
git reset --hard origin/main
git clean -fd
This applies equally to humans, local Claude Code, cloud Claude agents, Codex, and any other agent. The "Initial commit — fresh start for AI workflow" pattern that appeared independently on origin and local for three workspace repos is exactly what this rule prevents — it costs ~40 commits of redundant local work every time it happens.