repoverlay
Copilot instructions9 starsChanged 3 months agoMITView on GitHub
Run a single test: repoverlay is a CLI tool that overlays config files into git repositories without committing them. Files are symlinked (or copied) from overlay sources and excluded via .git/info/exclude. This repository optionally uses jj (Jujutsu) for version control, colocated with git. Check which VCS is active by looking for a .jj/ directory at the repo root. If present, use jj commands; otherwise fall back to standard git. When using jj: Key differences from git: - No staging area…
- Commits and pushes
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- caveman-commitSkill
- humanizerSkill
- ponytail-auditSkill
- ponytail-debtSkill
- ponytail-gainSkill
- ponytail-helpSkill
- ponytail-reviewSkill
- ponytailSkill
- prose-banlistSkill
- stop-slopSkill
- caveman-commitSkill
- changelogSkill
- humanizerSkill
- ponytail-auditSkill
- ponytail-debtSkill
- ponytail-gainSkill
- ponytail-helpSkill
- ponytail-reviewSkill
- ponytailSkill
- prose-banlistSkill
- releaseSkill
- stop-slopSkill
- testSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Run a single test:
- Very specific: line 39
Tests: Use tempfile::TempDir for temporary git repos.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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
Copilot Instructions
Build, Test, and Lint
just check # Run all checks: format, lint, test
just test # Run all tests (alias: t)
just lint # Run clippy lints (alias: l)
just format # Format code (alias: f)Run a single test:
cargo test <test_name>
cargo test apply::applies_single_file # module::test_name pattern
just test <name> # passes args to cargo testArchitecture
repoverlay is a CLI tool that overlays config files into git repositories without committing them. Files are symlinked (or copied) from overlay sources and excluded via .git/info/exclude.
- Single public entry point:
lib.rsexposes onlyrun(). All modules arepub(crate). - CLI layer (
cli.rs): clap derive macros define subcommands. Delegates to core operations inlib.rs. - State layer (
state.rs): Dual-write persistence — in-repo (.repoverlay/overlays/<name>.ccl) and external backup (~/.local/share/repoverlay/applied/) for recovery aftergit clean. - Source resolution (
sources.rs,overlay_repo.rs): Priority-ordered multi-source resolution with first-match-wins semantics. Supports local paths, GitHub URLs, and shared overlay repo references (org/repo/name). - Fork inheritance (
upstream.rs): Overlays from upstream repositories are automatically inherited by forks via remote detection. - Caching (
cache.rs): GitHub repos cached in~/.cache/repoverlay/github/owner/repo/using shallow clones.
Key Conventions
- Rust 2024 edition, minimum version 1.91.
- Clippy pedantic + nursery lints are enabled (see
[lints.clippy]inCargo.tomlfor allowed exceptions). - CCL format (via
sicklecrate) is used for all configuration and state files — not TOML or JSON. pub(crate)visibility: Used explicitly on all internal APIs for clarity, even in private modules (redundant_pub_cratelint is allowed).- Error handling:
anyhow::Resultfor application errors,thiserrorfor typed errors. - Security: Path components (org, repo, overlay names) are validated against traversal attacks. Repository URLs must use
https://,ssh://, orgit@schemes. Use--separator before positional args in git commands to prevent flag injection. - Tests: Use
tempfile::TempDirfor temporary git repos. Test helpers insrc/testutil.rs(create_test_repo(),create_test_overlay()). CLI integration tests intests/cli.rsuseassert_cmd. - Changelogs: Created via
changie new(orjust change). Entries go in.changes/unreleased/. - Conventional commits: Used for automated version bumps (
fix:= patch,feat:= minor,feat!:= major). - rustfmt: 100 char max width, 4-space tabs, 2024 edition.
Version Control
This repository optionally uses jj (Jujutsu) for version control, colocated with git. Check which VCS is active by looking for a .jj/ directory at the repo root. If present, use jj commands; otherwise fall back to standard git.
When using jj:
jj st— statusjj log— historyjj diff— working copy changesjj new— create a new changejj bookmark create <name> -r @— create a bookmark (branch) at the current changejj bookmark set <name> -r @— move a bookmark to the current changejj git push --bookmark <name>— push a bookmark to the remote
Key differences from git:
- No staging area — all working copy changes are automatically part of the current change.
- Bookmarks are jj's equivalent of git branches.
jj describesets the commit message for the current change.jj squashfolds the current change into its parent.
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.

