CONTRIBUTING: give each commit type a meaning, so that the type tells a fix of a doc or a skill

Open
#87 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
git, github, markdown, shell

Research direction

Read the “Message format” section in CONTRIBUTING.md and step 1 in .agents/skills/review-design/SKILL.md; compare the proposed commit type meanings against the examples and options in the issue. Decide how commit types should identify fixes to rules in docs and skills, then update the guidance so a contributor can tell which type to use. Done when the guidance explains each type and makes those fixes discoverable from commit subjects.

Written by the indexing model from the issue text.

Description

type/documentation
Kind

Unclear

Location
  • CONTRIBUTING.md, Message format: "Types: feat, fix, docs, refactor, test, ci, chore." The list gives no meaning for each type.
  • .agents/skills/review-design/SKILL.md, step 1, Collect the symptoms: "Fix commits that add many lines mark a place where the design was wrong."
Version

7c2e454

Problem

In this repo, a fix of a wrong rule in a skill or a doc usually has the type docs, not fix. The usual meaning of docs is "documentation only changes", from the Angular commit convention. That meaning assumes that docs do not change how the product works. Here, AI assistants follow the skills and the docs as instructions, so a wrong rule in them is a bug of the product.

Step 1 of review-design looks for fixes in the history of a path. The type in the subject does not show which commits are fixes, so an AI assistant must read each commit to find them. A complete list of commits does not solve this.

Evidence

On origin/main at 7c2e454:

  • git log --no-merges --format=%s origin/main: 65 subjects start with docs, 18 with fix.
  • git log --first-parent --format=%s origin/main: of 27 landing commits, 16 start with docs, 4 with fix.
  • caf4dd6 "docs: compare a landing commit with a PR body only for the same PR" adds one rule to .agents/skills/trace-decision/SKILL.md. It corrects a wrong behavior of the skill, but its type is docs.
Proposal

Give each type a meaning in Message format, so that the type tells a fix. Options:

Option Effect Cost
Choose the type by the intent: fix corrects a wrong rule or behavior, also in a doc or a skill. docs changes only the wording git log --grep='^fix' finds the fixes The line between a rule and its wording needs a judgment
Add a scope: fix(docs): for a fix in a doc or a skill The type tells a fix, and the scope tells the area The repo uses no scopes yet. A scope usually names a module
Add a trailer Fixes: <hash> that names the commit with the error A script can follow each fix to its cause The author must find that commit for each fix
Keep the types, and find fixes from the labels of the issues that a pull request closes, for example type/bug and type/documentation No new rule for commits It needs GitHub. Git alone does not have the labels

Each option applies only to new commits. The existing history keeps its types.

Dominant language
Shell
Stars
1
Forks
0
Avg merge
6h 59m
Merged PRs (30d)
26

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from c-w-z/commit-decision-record

All issues in c-w-z/commit-decision-record

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.