add CI images to repo
This commit is contained in:
parent
abce966b76
commit
817aa75f84
16 changed files with 386 additions and 54 deletions
|
|
@ -0,0 +1,66 @@
|
|||
---
|
||||
name: commit
|
||||
description: Generate commit messages and PR descriptions from implementation.
|
||||
---
|
||||
|
||||
# Commit Skill
|
||||
|
||||
Generates commit messages from completed implementation.
|
||||
|
||||
## Inputs
|
||||
|
||||
Read these files:
|
||||
- **DESIGN.md** (design contract)
|
||||
- **IMPLEMENTATION.md** (if exists; provides decisions log, deviations)
|
||||
- **run `jj diff`** (actual changes)
|
||||
|
||||
## Process
|
||||
|
||||
### 1. Review Changes
|
||||
|
||||
Examine diff to understand what changed. Cross-reference with DESIGN.md to understand why.
|
||||
|
||||
### 2. Generate Commit Message
|
||||
|
||||
**Format: Conventional Commits**
|
||||
|
||||
```
|
||||
brief description
|
||||
|
||||
Detailed body explaining:
|
||||
- What changed
|
||||
- Why (reference DESIGN.md problem/solution)
|
||||
```
|
||||
|
||||
**Types**: `feat`, `fix`, `refactor`, `docs`, `test`, `chore`
|
||||
|
||||
**Example**:
|
||||
```
|
||||
feat: add support for nested JSON
|
||||
|
||||
Changes:
|
||||
- Added parseNestedJSON() to handle nested patterns
|
||||
- Updated JSONParser.java to consume new patterns.
|
||||
```
|
||||
|
||||
**Guidelines**:
|
||||
- One commit for the entire feature (per DESIGN.md)
|
||||
- Accurate, complete: human will edit further
|
||||
|
||||
**Note**: IMPLEMENTATION.md should be deleted
|
||||
|
||||
## Output
|
||||
|
||||
Present to user:
|
||||
|
||||
```
|
||||
=== COMMIT MESSAGE ===
|
||||
[Generated message]
|
||||
```
|
||||
|
||||
Prompt user if they would like to commit using the message. If so, use `jj desc -m '<commit message>'`
|
||||
|
||||
## Philosophy
|
||||
|
||||
Your output is a **draft** for human editing. Optimize for accuracy and completeness, not polish. Provide context reviewers need:
|
||||
Good commit/PR messages make review faster and preserve project history.
|
||||
Loading…
Add table
Add a link
Reference in a new issue