Create Commit Instructions
Generate .github/instructions/commit.instructions.md for the active
workspace from the ordered fragments in assets/commit.instructions.d.
Copy the stable sections from the assets, and adapt only these sections to
the target project:
SCOPE GUIDANCE
GOOD EXAMPLES
Workflow
- Resolve the target workspace:
- Use the user's explicit path when provided.
- Otherwise use
git rev-parse --show-toplevel.
- If the directory is not a Git repository, use the current working
directory.
- Inspect the project before writing:
- Run
rg --files from the workspace root, excluding dependency and
generated directories such as node_modules, .git, dist, build,
coverage, .next, target, and vendor unless those directories
are first-party source in this repository.
- Read the top-level build and package files that identify the stack
(
package.json, Cargo.toml, pyproject.toml, go.mod,
CMakeLists.txt, *.sln, pom.xml, build.gradle*, Makefile,
workflow files, and similar files that exist).
- Inspect the primary source, test, docs, scripts, infrastructure, and
CI directories enough to identify real subsystem names.
- Read every file in
assets/commit.instructions.d in lexicographic order.
- Assemble the output by concatenating the fragments with exactly one blank
line between fragments.
- Replace
[[ADAPT_SCOPE_GUIDANCE]] with a repository-specific scope
section.
- Replace
[[ADAPT_GOOD_EXAMPLES]] with repository-specific examples.
- Write the result to
.github/instructions/commit.instructions.md,
creating .github/instructions if needed.
Scope Guidance
Use only scopes that are grounded in the inspected repository. Prefer scope
names that a maintainer would recognize from package names, source
directories, feature modules, product domains, test suites, CI/build files, or
documentation areas.
Generate 8 to 18 scopes when the project is large enough. Use fewer scopes for
small projects. Omit a scope instead of inventing one.
The generated section must include:
- A short paragraph explaining when to use a scope and when to omit it.
- A Markdown table with columns
Scope and Meaning.
- Meanings that cite real paths, modules, packages, commands, or subsystems.
- Additional guidance bullets that resolve likely scope conflicts in this
repository.
Avoid generic scopes unless they map to real project structure. Do not use
stale template scopes such as processor, dsp, juce, plugin, or
neural unless those terms actually exist in the target repository.
Good Examples
Generate 8 to 12 examples that match the repository's stack and scopes.
Include a mix of feat, fix, refactor, perf, test, build, ci,
docs, chore, and revert only when each type is plausible for this
project.
Examples must:
- Use scopes from the generated
SCOPE GUIDANCE table when a scope is useful.
- Be specific to project concepts discovered in the repository.
- Stay under 72 characters on the subject line.
- Use lowercase imperative descriptions with no trailing period.
- Include one breaking-change example only when the project has public API,
persisted state, package contracts, schemas, CLI flags, or other compatibility
surfaces where breaking changes are meaningful.
Validation
Before finishing:
- Confirm the output contains no
[[ADAPT_ placeholders.
- Confirm no copied template domain terms remain unless present in the target
repository.
- Confirm
.github/instructions/commit.instructions.md starts with the
applyTo: "commits" frontmatter.
- Read the generated
SCOPE GUIDANCE and GOOD EXAMPLES sections once more
and verify each scope and example is supported by the inspected files.
Source: plfiorini/agents — distributed by TomeVault.
1---2name: create-commit-instructions3description: Generate or update `.github/instructions/commit.instructions.md` for the current workspace from bundled `assets/commit.instructions.d` fragments. Use when the user asks to create commit instructions, Conventional Commit guidance, repository-specific commit message rules, or GitHub Copilot/agent commit instructions, especially when the SCOPE GUIDANCE and GOOD EXAMPLES sections must be adapted to the project being edited. Use when this capability is needed.4---56# Create Commit Instructions78Generate `.github/instructions/commit.instructions.md` for the active9workspace from the ordered fragments in `assets/commit.instructions.d`.10Copy the stable sections from the assets, and adapt only these sections to11the target project:1213- `SCOPE GUIDANCE`14- `GOOD EXAMPLES`1516## Workflow17181. Resolve the target workspace:19 - Use the user's explicit path when provided.20 - Otherwise use `git rev-parse --show-toplevel`.21 - If the directory is not a Git repository, use the current working22 directory.232. Inspect the project before writing:24 - Run `rg --files` from the workspace root, excluding dependency and25 generated directories such as `node_modules`, `.git`, `dist`, `build`,26 `coverage`, `.next`, `target`, and `vendor` unless those directories27 are first-party source in this repository.28 - Read the top-level build and package files that identify the stack29 (`package.json`, `Cargo.toml`, `pyproject.toml`, `go.mod`,30 `CMakeLists.txt`, `*.sln`, `pom.xml`, `build.gradle*`, `Makefile`,31 workflow files, and similar files that exist).32 - Inspect the primary source, test, docs, scripts, infrastructure, and33 CI directories enough to identify real subsystem names.343. Read every file in `assets/commit.instructions.d` in lexicographic order.354. Assemble the output by concatenating the fragments with exactly one blank36 line between fragments.375. Replace `[[ADAPT_SCOPE_GUIDANCE]]` with a repository-specific scope38 section.396. Replace `[[ADAPT_GOOD_EXAMPLES]]` with repository-specific examples.407. Write the result to `.github/instructions/commit.instructions.md`,41 creating `.github/instructions` if needed.4243## Scope Guidance4445Use only scopes that are grounded in the inspected repository. Prefer scope46names that a maintainer would recognize from package names, source47directories, feature modules, product domains, test suites, CI/build files, or48documentation areas.4950Generate 8 to 18 scopes when the project is large enough. Use fewer scopes for51small projects. Omit a scope instead of inventing one.5253The generated section must include:5455- A short paragraph explaining when to use a scope and when to omit it.56- A Markdown table with columns `Scope` and `Meaning`.57- Meanings that cite real paths, modules, packages, commands, or subsystems.58- Additional guidance bullets that resolve likely scope conflicts in this59 repository.6061Avoid generic scopes unless they map to real project structure. Do not use62stale template scopes such as `processor`, `dsp`, `juce`, `plugin`, or63`neural` unless those terms actually exist in the target repository.6465## Good Examples6667Generate 8 to 12 examples that match the repository's stack and scopes.68Include a mix of `feat`, `fix`, `refactor`, `perf`, `test`, `build`, `ci`,69`docs`, `chore`, and `revert` only when each type is plausible for this70project.7172Examples must:7374- Use scopes from the generated `SCOPE GUIDANCE` table when a scope is useful.75- Be specific to project concepts discovered in the repository.76- Stay under 72 characters on the subject line.77- Use lowercase imperative descriptions with no trailing period.78- Include one breaking-change example only when the project has public API,79 persisted state, package contracts, schemas, CLI flags, or other compatibility80 surfaces where breaking changes are meaningful.8182## Validation8384Before finishing:8586- Confirm the output contains no `[[ADAPT_` placeholders.87- Confirm no copied template domain terms remain unless present in the target88 repository.89- Confirm `.github/instructions/commit.instructions.md` starts with the90 `applyTo: "commits"` frontmatter.91- Read the generated `SCOPE GUIDANCE` and `GOOD EXAMPLES` sections once more92 and verify each scope and example is supported by the inspected files.9394---95> Source: [plfiorini/agents](https://github.com/plfiorini/agents) — distributed by [TomeVault](https://tomevault.io).96<!-- tomevault:4.0:skill_md:2026-06-16 -->