agentleFS
gjbexgjbex/scientific-computing-skills/skills/project-repository-setup/SKILL.md

project-repository-setup

Skill1 starsChanged 6 months agoApache-2.0View on GitHub

Set up or review a language-agnostic software repository baseline,

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
  1. Distinctive:

    Use this skill when creating, reorganizing, or reviewing a software repository's baseline structure and developer workflow, independent of …

    line 11
  2. Distinctive:

    Use this skill when:

    line 29
  3. Distinctive:

    Do not use this skill to override a framework's required layout or an existing repository convention that is already intentional and …

    line 39
  4. Distinctive:

    When this skill applies:

    line 44
  5. Distinctive:

    Read the repository AGENTS.md first, if present.

    line 46
  6. Distinctive:

    Prefer small, conventional layout improvements before large migrations.

    line 50
  7. Distinctive:

    Keep local developer commands and CI entry points aligned.

    line 51
  8. Distinctive:

    Prefer incremental structure changes unless the user explicitly asks for a broad repository reorganization.

    line 55
  9. Distinctive:

    Only create directories that have a clear near-term use.

    line 69
  10. Distinctive:

    Keep the repository root focused on discoverability:

    line 74
  11. Distinctive:

    Avoid dumping generated outputs, one-off scratch files, or many unrelated helper scripts into the root.

    line 85
  12. Distinctive:

    avoid site-specific HPC login, scheduler, filesystem, account, allocation, or cluster-host facts unless the target repository is explicitly …

    line 99
  13. Distinctive:

    Keep AGENTS.md short and stable.

    line 102
  14. Distinctive:

    Use pre-commit hooks to run fast, deterministic checks that catch common formatting and hygiene issues before commit.

    line 107
  15. Distinctive:

    Keep hooks fast enough that developers do not routinely bypass them.

    line 109
  16. Distinctive:

    Prefer repository-local config files and pinned tool versions where practical.

    line 110
  17. Distinctive:

    Avoid hooks that depend on machine-local state or hidden external services.

    line 111
  18. Distinctive:

    Treat expensive tests, flaky integration checks, or environment-specific validation as poor pre-commit defaults.

    line 115
  19. Very specific:

    Use developer-tool-installation-policy when deciding whether tools used by hooks, local commands, or CI should be project-pinned or …

    line 118
  20. Distinctive:

    Prefer checked-in scripts, task runners, or documented commands over ad hoc shell snippets hidden in docs.

    line 126
  21. Distinctive:

    Keep command names and behavior stable enough for CI and contributors.

    line 128
  22. Distinctive:

    Avoid duplicating near-identical logic across local scripts and CI workflows.

    line 129
  23. Distinctive:

    If the repository spans multiple tools or languages, make the top-level command surface clear even if internals remain tool-specific.

    line 131
  24. Distinctive:

    Keep build directories, caches, temporary outputs, and generated artifacts out of source directories when practical.

    line 136
  25. Distinctive:

    Add ignore rules for files that are reproducible and not meant for review.

    line 138
  26. Distinctive:

    Commit generated files only when there is a clear reason, such as vendored lockfiles, generated documentation intended for publication, or …

    line 139
  27. Distinctive:

    Document repository expectations for single-purpose branches and atomic commits when contributors or agents regularly prepare pull requests.

    line 150
  28. Very specific:

    Use git-refactor-hygiene for move/rename work and for branch, staging, commit, or pull-request scope checks.

    line 154
  29. Distinctive:

    Place tool configuration where the tool and repository conventions expect it.

    line 159
  30. Distinctive:

    Prefer one canonical config per tool rather than scattered duplicates.

    line 160
  31. Distinctive:

    Keep shared settings in version-controlled files and local overrides in ignored machine-specific files.

    line 161
  32. Distinctive:

    Document non-obvious config interactions in the README or contribution docs.

    line 163
  33. Distinctive:

    Avoid configuration sprawl that makes it unclear which file actually controls a tool.

    line 165
  34. Distinctive:

    Keep CI jobs pointed at documented project entry points rather than bespoke one-off command sequences.

    line 172
  35. Very specific:

    Keep workflow files under .github/workflows/, run documented local commands inside jobs, avoid broad permissions, and keep release or …

    line 181
  36. Very specific:

    Use scientific-ci for scientific CI design details such as build matrices, numerical validation, artifacts, GitHub Actions job structure, …

    line 185
  37. Distinctive:

    Check that moved or newly referenced scripts and config files exist.

    line 201
  38. Distinctive:

    Run the lightweight local quality or test entry point when practical.

    line 202
  39. Distinctive:

    Verify that ignore rules do not hide source files that should be tracked.

    line 203
  40. Distinctive:

    If a proposed layout change was not applied, note the reason and migration risk.

    line 205
  41. Distinctive:

    When using this skill, briefly note:

    line 210

≈ “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.

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

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, or CONTRIBUTING need 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:

  1. Read the repository AGENTS.md first, if present.
  2. Inspect existing top-level directories, scripts, and generated outputs.
  3. Identify which project files are source, tests, docs, automation, examples, or generated artifacts.
  4. Prefer small, conventional layout improvements before large migrations.
  5. Keep local developer commands and CI entry points aligned.
  6. 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.md for project purpose and common workflows;
  • LICENSE or equivalent licensing file;
  • CONTRIBUTING.md when contribution workflow matters;
  • .gitignore for generated artifacts, caches, build trees, and local-only files;
  • .editorconfig when basic editor consistency is useful;
  • AGENTS.md when 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 --short before staging and to warn when unrelated dirty files would pollute a commit or pull request.
  • Use git-refactor-hygiene for 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.

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.