project-repository-setup
Skill1 starsChanged 6 months agoApache-2.0View on GitHub
Set up or review a language-agnostic software repository baseline,
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- developer-tool-installation-policySkill
- git-refactor-hygieneSkill
- scientific-accelerator-portabilitySkill
- scientific-build-systemsSkill
- scientific-ciSkill
- scientific-cli-benchmarkSkill
- scientific-cli-designSkill
- scientific-code-styleSkill
- scientific-container-workflowsSkill
- scientific-data-analysis-and-visualizationSkill
- scientific-data-managementSkill
- scientific-documentationSkill
- scientific-io-and-data-formatsSkill
- scientific-notebook-workflowsSkill
- scientific-numerics-reviewSkill
- scientific-package-managementSkill
- scientific-parallel-debuggingSkill
- scientific-performance-portabilitySkill
- scientific-profilingSkill
- scientific-release-and-publicationSkill
- scientific-reproducibilitySkill
- scientific-reviewSkill
- scientific-testingSkill
- scientific-workflow-automationSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
41 rules. About 0 are common, 37 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈37
Distinctive · estimate
This author's own choices. Worth a look.
4
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 11
Use this skill when creating, reorganizing, or reviewing a software repository's baseline structure and developer workflow, independent of …
- Distinctive: line 29
Use this skill when:
- Distinctive: line 39
Do not use this skill to override a framework's required layout or an existing repository convention that is already intentional and …
- Distinctive: line 44
When this skill applies:
- Distinctive: line 46
Read the repository AGENTS.md first, if present.
- Distinctive: line 50
Prefer small, conventional layout improvements before large migrations.
- Distinctive: line 51
Keep local developer commands and CI entry points aligned.
- Distinctive: line 55
Prefer incremental structure changes unless the user explicitly asks for a broad repository reorganization.
- Distinctive: line 69
Only create directories that have a clear near-term use.
- Distinctive: line 74
Keep the repository root focused on discoverability:
- Distinctive: line 85
Avoid dumping generated outputs, one-off scratch files, or many unrelated helper scripts into the root.
- Distinctive: line 99
avoid site-specific HPC login, scheduler, filesystem, account, allocation, or cluster-host facts unless the target repository is explicitly …
- Distinctive: line 102
Keep AGENTS.md short and stable.
- Distinctive: line 107
Use pre-commit hooks to run fast, deterministic checks that catch common formatting and hygiene issues before commit.
- Distinctive: line 109
Keep hooks fast enough that developers do not routinely bypass them.
- Distinctive: line 110
Prefer repository-local config files and pinned tool versions where practical.
- Distinctive: line 111
Avoid hooks that depend on machine-local state or hidden external services.
- Distinctive: line 115
Treat expensive tests, flaky integration checks, or environment-specific validation as poor pre-commit defaults.
- Very specific: line 118
Use developer-tool-installation-policy when deciding whether tools used by hooks, local commands, or CI should be project-pinned or …
- Distinctive: line 126
Prefer checked-in scripts, task runners, or documented commands over ad hoc shell snippets hidden in docs.
- Distinctive: line 128
Keep command names and behavior stable enough for CI and contributors.
- Distinctive: line 129
Avoid duplicating near-identical logic across local scripts and CI workflows.
- Distinctive: line 131
If the repository spans multiple tools or languages, make the top-level command surface clear even if internals remain tool-specific.
- Distinctive: line 136
Keep build directories, caches, temporary outputs, and generated artifacts out of source directories when practical.
- Distinctive: line 138
Add ignore rules for files that are reproducible and not meant for review.
- Distinctive: line 139
Commit generated files only when there is a clear reason, such as vendored lockfiles, generated documentation intended for publication, or …
- Distinctive: line 150
Document repository expectations for single-purpose branches and atomic commits when contributors or agents regularly prepare pull requests.
- Very specific: line 154
Use git-refactor-hygiene for move/rename work and for branch, staging, commit, or pull-request scope checks.
- Distinctive: line 159
Place tool configuration where the tool and repository conventions expect it.
- Distinctive: line 160
Prefer one canonical config per tool rather than scattered duplicates.
- Distinctive: line 161
Keep shared settings in version-controlled files and local overrides in ignored machine-specific files.
- Distinctive: line 163
Document non-obvious config interactions in the README or contribution docs.
- Distinctive: line 165
Avoid configuration sprawl that makes it unclear which file actually controls a tool.
- Distinctive: line 172
Keep CI jobs pointed at documented project entry points rather than bespoke one-off command sequences.
- Very specific: line 181
Keep workflow files under .github/workflows/, run documented local commands inside jobs, avoid broad permissions, and keep release or …
- Very specific: line 185
Use scientific-ci for scientific CI design details such as build matrices, numerical validation, artifacts, GitHub Actions job structure, …
- Distinctive: line 201
Check that moved or newly referenced scripts and config files exist.
- Distinctive: line 202
Run the lightweight local quality or test entry point when practical.
- Distinctive: line 203
Verify that ignore rules do not hide source files that should be tracked.
- Distinctive: line 205
If a proposed layout change was not applied, note the reason and migration risk.
- Distinctive: line 210
When using this skill, briefly note:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Project Repository Setup
Use this skill when creating, reorganizing, or reviewing a software repository's baseline structure and developer workflow, independent of any one programming language or domain.
Repository AGENTS.md instructions take precedence over this skill.
Purpose
Apply a pragmatic default for:
- top-level project layout and repo-root hygiene;
- baseline developer documentation and metadata files;
- pre-commit, formatting, and linting entry points;
- consistent local commands for build, test, and quality checks;
- keeping generated files, caches, and large artifacts out of source layout.
When To Use
Use this skill when:
- the user asks to scaffold or clean up repository structure;
- a project has ad hoc scripts, scattered generated outputs, or unclear entry points;
- baseline files such as
.gitignore,.editorconfig,README, orCONTRIBUTINGneed to be added or rationalized; - pre-commit hooks or standard local validation commands should be introduced;
- CI and local developer workflows should use the same project entry points.
Do not use this skill to override a framework's required layout or an existing repository convention that is already intentional and working.
Working Approach
When this skill applies:
- Read the repository
AGENTS.mdfirst, if present. - Inspect existing top-level directories, scripts, and generated outputs.
- Identify which project files are source, tests, docs, automation, examples, or generated artifacts.
- Prefer small, conventional layout improvements before large migrations.
- Keep local developer commands and CI entry points aligned.
- State what was reorganized, what was left unchanged, and what follow-up cleanup remains.
Prefer incremental structure changes unless the user explicitly asks for a broad repository reorganization.
Top-Level Layout
A practical language-agnostic baseline is:
src/or a project-specific source directory for primary implementation code;tests/for automated tests;docs/for user or developer documentation beyond the README;examples/for runnable examples or small sample projects;scripts/for maintenance or developer automation;benchmarks/for benchmark drivers or performance experiments when relevant.
Only create directories that have a clear near-term use. Avoid empty layout theater.
Repo Root Hygiene
Keep the repository root focused on discoverability:
README.mdfor project purpose and common workflows;LICENSEor equivalent licensing file;CONTRIBUTING.mdwhen contribution workflow matters;.gitignorefor generated artifacts, caches, build trees, and local-only files;.editorconfigwhen basic editor consistency is useful;AGENTS.mdwhen future Codex work should follow repository-specific conventions or use domain skills;- one or a few project-level build/config entry points.
Avoid dumping generated outputs, one-off scratch files, or many unrelated helper scripts into the root.
Agent Instructions
For new scientific-computing repositories, add a concise root AGENTS.md unless
the user declines or the repository already has equivalent agent guidance. The
file should:
- describe the repository scope and any source, test, docs, examples, and generated-artifact boundaries;
- point Codex agents at this scientific-computing skill set for domain work,
using the relevant
scientific-*skills rather than generic software advice; - list the repository's normal validation commands once they exist;
- avoid site-specific HPC login, scheduler, filesystem, account, allocation, or cluster-host facts unless the target repository is explicitly site-local.
Keep AGENTS.md short and stable. Prefer project conventions and validation
commands over broad instructions that duplicate every skill.
Pre-Commit and Quality Hooks
- Use pre-commit hooks to run fast, deterministic checks that catch common formatting and hygiene issues before commit.
- Keep hooks fast enough that developers do not routinely bypass them.
- Prefer repository-local config files and pinned tool versions where practical.
- Avoid hooks that depend on machine-local state or hidden external services.
- Make hook behavior consistent with CI checks so the same issues are caught in both places.
Treat expensive tests, flaky integration checks, or environment-specific validation as poor pre-commit defaults.
Use developer-tool-installation-policy when deciding whether tools used by
hooks, local commands, or CI should be project-pinned or installed as isolated
global CLIs.
Local Developer Commands
- Provide one obvious command path for setup, test, format, and lint when the project supports those actions.
- Prefer checked-in scripts, task runners, or documented commands over ad hoc shell snippets hidden in docs.
- Keep command names and behavior stable enough for CI and contributors.
- Avoid duplicating near-identical logic across local scripts and CI workflows.
If the repository spans multiple tools or languages, make the top-level command surface clear even if internals remain tool-specific.
Generated Files and Artifacts
- Keep build directories, caches, temporary outputs, and generated artifacts out of source directories when practical.
- Add ignore rules for files that are reproducible and not meant for review.
- Commit generated files only when there is a clear reason, such as vendored lockfiles, generated documentation intended for publication, or checked-in golden references.
- Store large data artifacts outside the normal source tree unless they are truly part of the repository contract.
Repository structure should make it obvious what humans edit and what tools produce.
Branch and Commit Hygiene
- Document repository expectations for single-purpose branches and atomic commits when contributors or agents regularly prepare pull requests.
- Encourage agents to inspect
git status --shortbefore staging and to warn when unrelated dirty files would pollute a commit or pull request. - Use
git-refactor-hygienefor move/rename work and for branch, staging, commit, or pull-request scope checks.
Configuration Files
- Place tool configuration where the tool and repository conventions expect it.
- Prefer one canonical config per tool rather than scattered duplicates.
- Keep shared settings in version-controlled files and local overrides in ignored machine-specific files.
- Document non-obvious config interactions in the README or contribution docs.
Avoid configuration sprawl that makes it unclear which file actually controls a tool.
CI Alignment
- Reuse the same scripts, presets, or task-runner targets locally and in CI when practical.
- Keep CI jobs pointed at documented project entry points rather than bespoke one-off command sequences.
- Make pre-commit, lint, test, and build expectations visible from the repo itself, not only from CI logs.
Local and CI workflows should validate the same contract unless there is an explicit reason to split them.
For GitHub-hosted projects, GitHub Actions is a practical default CI target.
Keep workflow files under .github/workflows/, run documented local commands
inside jobs, avoid broad permissions, and keep release or deployment automation
separate from ordinary validation unless the repository deliberately uses CI/CD.
Use scientific-ci for scientific CI design details such as build matrices,
numerical validation, artifacts, GitHub Actions job structure, and portability
tradeoffs.
Anti-Patterns
- creating many empty directories with no current purpose;
- mixing source files, generated artifacts, and scratch outputs in one tree;
- maintaining separate undocumented commands for local development and CI;
- adding pre-commit hooks so slow or flaky that they get ignored;
- hardcoding machine-local paths in repository automation;
- moving large parts of the tree purely for aesthetics without improving discoverability or workflow.
Validation Defaults
- Check that moved or newly referenced scripts and config files exist.
- Run the lightweight local quality or test entry point when practical.
- Verify that ignore rules do not hide source files that should be tracked.
- State explicitly which setup, hook, or validation paths were exercised.
- If a proposed layout change was not applied, note the reason and migration risk.
Output Expectations
When using this skill, briefly note:
- which top-level layout, metadata, or automation files were added or changed;
- whether pre-commit, lint, format, or test entry points were introduced;
- how generated artifacts and local-only files are handled;
- which local validation commands were run;
- which repository-structure tradeoffs or follow-up cleanup remain.
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.

