python-project-workflow
Skill1 starsChanged 18 days agoMITView on GitHub
Set up, inspect, preserve, and verify Python project workflows, including greenfield scaffolding, packaging, dependency and tool configuration, CI, compatibility contracts, mature automation repositories, and project-native validation. Use when the task affects repository-wide Python structure or workflow. Do not use for pure code review, isolated support-script edits in otherwise non-Python repositories, or framework-specific implementation unless the request also changes project tooling or workflow.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- brookite/skillstheir own version, first seen Nov 29, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- brookite/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. About 0 are common, 19 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
6
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
- Distinctive: line 25
Verify with project-native gates and report actual results.
- Distinctive: line 46
Inspect or advise: use read-only discovery. Do not install dependencies, synchronize environments, generate files, or edit configuration.
- Distinctive: line 50
Verify: run already-available project-native gates first.
- Distinctive: line 52
Bootstrap: create or replace project structure only for an explicit greenfield or modernization request.
- Distinctive: line 71
When resuming interrupted work, treat summaries and prior claims as leads.
- Distinctive: line 77
Treat declared packaging range, effective CI/deployment range, tool targets, and minimum-supported syntax/dependencies as one contract.
- Distinctive: line 90
When a task touches packaging/pyproject metadata, inspect before claiming PEP 621 alignment.
- Very specific: line 97
Report status with evidence: use aligned, partial, missing, legacy-alternative, unknown, or N/A.
- Distinctive: line 100
Preserve coherent layouts: do not impose PEP 621 on a coherent legacy repository unless the user explicitly requests migration.
- Very specific: line 103
Version contract: treat requires-python as part of the Python Version Contract.
- Distinctive: line 126
Use project-native gates first, then relevant skill references, then current official tool documentation.
- Very specific: line 133
Do not impose uv, src/, Ruff, MyPy, pytest, PEP 621, or a new package layout when coherent alternatives already exist.
- Distinctive: line 135
Keep modernization separate from required fixes.
- Distinctive: line 136
Do not reformat unrelated code or combine broad mechanical changes with logic changes.
- Distinctive: line 140
Treat project-native warnings according to their documented severity.
- Distinctive: line 147
When canonical source has runtime, generated, or installed mirrors, edit the canonical source first.
- Distinctive: line 158
Never expose or commit secrets: do not commit or print credentials, access tokens, private keys, populated secret files, sensitive URLs, or …
- Distinctive: line 164
Do not claim a repository is secret-free from filename checks or absence of a regex match.
- Very specific: line 166
Load detailed procedure: before advising or editing ignore rules, credentials, tracked sensitive files, or history exposure, load …
- Very specific: line 172
Prefer commands already defined by CI, Make, tox, nox, task runners, or repository scripts.
- Distinctive: line 176
Before running a command, distinguish:
- Distinctive: line 178
Read-only checks that inspect existing state.
- Distinctive: line 183
Run setup and mutating verification only when authorized and necessary.
- Very specific: line 186
When no canonical gate covers changed behavior, create a focused temporary verifier under /tmp only when it adds meaningful evidence.
- Distinctive: line 210
Do not invent success or hide failures behind unrelated passing checks.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Python Project Workflow
Apply a preservation-first workflow to Python project setup, tooling, CI, packaging, compatibility, and repository-wide verification.
Framework-specific project conventions are out of scope. For Django, FastAPI, Flask, and similar frameworks, use dedicated framework guidance or preserve the project's established workflow. Do not present this generic baseline as framework-complete guidance.
Workflow
- Inspect before advising: read repository instructions, version-control state, and project-native configuration first. Do not recommend or make changes until the current state is established from repository facts.
- Classify the repository and the requested operation.
- Load only the references relevant to that classification.
- Preserve coherent local conventions unless the user explicitly requests modernization.
- Verify with project-native gates and report actual results.
Repository Classification
Apply Existing and Automation before considering Greenfield. Missing packaging metadata or tests does not make a repository greenfield when meaningful source, scripts, documentation, or history already exist.
| Signal | Classification | Guidance |
| Empty directory or explicit new-scaffold request | Greenfield | Load references/pyproject-template.md |
| Packaging metadata and coherent tooling | Existing project | Orient first, then load task-specific guidance |
| Python used for repository checkers or governance | Mature automation | Load references/mature-repo-preservation.md |
| Eval or benchmark runners | Automation with benchmarks | Also load references/eval-benchmark-hardening.md when runner behavior, assertions, or artifacts are in scope |
For isolated support scripts that fall outside this skill's trigger, use repository-native instructions and focused checks. Do not infer correctness from classification alone.
Operation Modes
- Inspect or advise: use read-only discovery. Do not install dependencies, synchronize environments, generate files, or edit configuration.
- Implement: make only changes authorized by the user and preserve unrelated worktree changes.
- Verify: run already-available project-native gates first. Treat setup or dependency installation as a separate step when it is required.
- Bootstrap: create or replace project structure only for an explicit greenfield or modernization request.
Orientation Checklist
Inspect only what is relevant to the task:
- Active repository instructions such as
AGENTS.md,CONTRIBUTING.md, and framework-specific guidance. git status --short --branch, relevant diffs, and recent bounded history.- Packaging metadata:
pyproject.toml,setup.py,setup.cfg, build backend, dependencies, and lockfiles. - Source, test, namespace-package, and CLI entry-point layout.
- Tool configuration for Ruff, MyPy, Pyright, pytest, tox, nox, pre-commit, Hatch, Poetry, Pixi, or project-specific scripts.
- CI workflows, supported operating systems, and Python-version matrices.
- README and developer documentation claims that form part of the workflow contract.
When resuming interrupted work, treat summaries and prior claims as leads. Reconstruct state from repository facts before editing, committing, or claiming completion.
Python Version Contract
Treat declared packaging range, effective CI/deployment range, tool targets, and
minimum-supported syntax/dependencies as one contract. Target the project-wide
minimum unless configuration intentionally scopes a newer target. Do not silently
raise requires-python or remove older CI versions.
Surface mismatches before changing any contract element. Do not assume tool support or defaults; confirm current tool Python support, interpreter lifecycle, platform defaults, dependency support, and packaging guidance from official sources before making a new compatibility recommendation. Do not encode point-in-time lifecycle claims as durable policy.
PEP 621 Inspection-First Contract
When a task touches packaging/pyproject metadata, inspect before claiming PEP 621 alignment. This is a bounded workflow contract, not a universal compliance scanner.
- Inspect evidence:
[project]table presence and key fields;project.dynamic;[build-system];requires-python; dependency declarations; existingsetup.py/setup.cfg/Poetry/Flit/Hatch/PDM metadata; tool targets and CI version matrices relevant to the Python Version Contract. - Report status with evidence: use
aligned,partial,missing,legacy-alternative,unknown, orN/A. State what was inspected and what was not. Do not invent compliance when evidence is absent or unreadable. - Preserve coherent layouts: do not impose PEP 621 on a coherent legacy repository unless the user explicitly requests migration. For greenfield or explicitly incoherent projects, PEP 621 is a negotiable baseline.
- Version contract: treat
requires-pythonas part of the Python Version Contract; report mismatches, do not silently change it. - Canonical sources: PyPA pyproject.toml specification,
PEP 621,
PyPA core metadata,
Writing your pyproject.toml,
PEP 639; load
references/pyproject-template.mdfor baseline template/caveats.
Reference Routing
Load references progressively:
| Task | Reference |
| Greenfield setup, packaging, release, or CLI entry points | references/pyproject-template.md |
| Linting, formatting, typing, tests, or CI commands | references/lint-format-typing-testing.md |
| Mature repositories and automation | references/mature-repo-preservation.md |
| Eval or benchmark runners | references/eval-benchmark-hardening.md (thin runtime checklist; detailed maintainer guidance in repo docs) |
.gitignore, secrets, credentials, or Git-history exposure | references/security-and-gitignore.md |
| Canonical/runtime payload or installed-copy drift | references/drift-classes.md (thin runtime summary; detailed maintainer procedure in repo docs) |
| Escape-heavy shell, regex, or generated text | references/safe-editing.md |
| Compact correctness awareness outside pure review | references/core-footguns.md |
Use project-native gates first, then relevant skill references, then current official tool documentation. Ask the user when a material choice remains.
Preserve Local Conventions
For existing repositories:
- Do not impose
uv,src/, Ruff, MyPy, pytest, PEP 621, or a new package layout when coherent alternatives already exist. - Keep modernization separate from required fixes.
- Do not reformat unrelated code or combine broad mechanical changes with logic changes.
- Decide lockfile policy from the repository's application or library contract; do not automatically ignore, regenerate, or commit lockfiles.
- Treat project-native warnings according to their documented severity.
For greenfield or explicitly incoherent projects, a reasonable starting point
is uv, Ruff, MyPy, pytest, PEP 621, and a src/ layout. Present this as a
negotiable baseline and verify compatibility with the intended deployment and
dependency ecosystem.
When canonical source has runtime, generated, or installed mirrors, edit the canonical source first. Synchronize mirrors only through project-provided commands, then run both source-only and mirror-aware gates.
Sensitive-Evidence Safety
Runtime-critical invariants (canonical runtime detail: references/security-and-gitignore.md):
- Preserve before editing: inspect existing
.gitignorebehavior before changing it; keep project-specific/security rules, including sanitized!.env.examplewhen used. - Never expose or commit secrets: do not commit or print credentials, access tokens, private keys, populated secret files, sensitive URLs, or secret-bearing commit metadata; never print raw commit bodies.
- Tracked/history exposure:
.gitignoredoes not protect tracked files. If sensitive material is tracked or may have entered history, stop, alert the user, report existence/location only, and recommend revocation or rotation. Do not claim a repository is secret-free from filename checks or absence of a regex match. - Load detailed procedure: before advising or editing ignore rules,
credentials, tracked sensitive files, or history exposure, load
references/security-and-gitignore.md.
Verification
Prefer commands already defined by CI, Make, tox, nox, task runners, or
repository scripts. Load references/lint-format-typing-testing.md only when
generic tool commands are needed.
Before running a command, distinguish:
- Read-only checks that inspect existing state.
- Environment setup such as
uv sync, virtual-environment creation, or package installation. - Generators or fixers that can modify source, configuration, or lockfiles.
Run setup and mutating verification only when authorized and necessary. Do not claim a full suite is green when only a focused check ran.
When no canonical gate covers changed behavior, create a focused temporary
verifier under /tmp only when it adds meaningful evidence. Name it with a
py-workflow-verify- prefix, exercise the smallest relevant pass and fail
paths, remove it afterward when practical, and report it as ad-hoc
verification.
Re-run verification when later edits can affect the behavior or contract already checked. Match documentation-only changes with documentation checks; do not create a new behavioral harness solely because an unrelated comment or example changed.
For escape-heavy edits, load references/safe-editing.md and use a focused
byte-level diagnostic where relevant.
Reporting
Report:
- Repository and operation classification.
- Files changed or reviewed.
- Verification commands and observed results.
- Skipped checks and remaining risks.
- A concise next step when work remains.
Do not invent success or hide failures behind unrelated passing checks.
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.

