Updates status.md, records decisions, and makes a clean git commit.
71%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./skills/ac/SKILL.mdBefore committing, it does three things:
status.md (marks what was done) and writes a decision if neededRuns automatically on phrases like "let's commit / done / push / finished / save".
The user can invoke it manually: /ac.
git diff --cached --name-onlyIf the list is empty:
git diff HEAD --name-onlyIf that's empty too → print "Nothing to commit" and stop.
git diff --cachedScan the entire diff against these patterns:
Found one → STOP. Show the offending line. Do not commit.
First answer this: was there an architectural decision in this session? (options were discussed, an approach was chosen)
No → skip this step.
Yes:
Find the next ID: glob: .agent-log/decisions/**/*.md → max number DEC-NNNN → +1. If there are no files → DEC-0001.
Slug from the title:
python3 -c "import unicodedata,re,sys; s=unicodedata.normalize('NFKD',sys.argv[1]).encode('ascii','ignore').decode(); print(re.sub(r'[^a-z0-9]+','-',s.lower()).strip('-'))" "Decision title"Create .agent-log/decisions/YYYY/MM/DD/DEC-NNNN-slug.md:
---
id: DEC-NNNN
type: decision
title: Decision title
summary: One line — the essence of the choice
status: active
created_at: YYYY-MM-DD
updated_at: YYYY-MM-DD
tags: [tag1, tag2]
confidence: medium
schema_version: 1
related_files: [source code only, no .agent-log/]
origin: generated
verification_state: unverified
---
## Context
Why this question came up. What the problem is. Clear to a new developer.
## Decision
What was chosen and why exactly this.
## Alternatives
What was considered and why it was not chosen. Even the bad options — so they don't get suggested again.Remember the ID (DEC-NNNN) — it's needed in step 6.
Read .agent-log/status.md.
Determine: which task from "Current focus" did this commit resolve?
- [ ] task → - [x] task for the completed one- [ ] in the focus)updated_at in the frontmatter: current date and time (YYYY-MM-DD HH:MM)If status.md does not exist → create an empty template:
---
type: status
updated_at: YYYY-MM-DD HH:MM
current_goal: ""
---
# Current focus
- [ ] Task not defined
# Upcoming backlog (Next Steps)
# Known issues / Technical debtgit add .agent-log/status.mdIf a decision was created in step 3:
git add .agent-log/decisions/type(scope): short description
Why this change was made.
What problem was being solved and why this way.
Related: DEC-NNNN| Type | When |
|---|---|
feat | New functionality |
fix | Bug fix |
refactor | Rework without changing behavior |
docs | Documentation only |
chore | Configs, dependencies |
test | Tests |
perf | Performance |
style | Formatting |
build | Build, CI/CD |
add, fix, remove (not added, not adding)WHY, not WHAT. Why this way exactly. Separate with a blank line, wrap at 72 characters.
Related: DEC-NNNN — if a decision was created in step 3BREAKING CHANGE: description — if it's a breaking changefeat(auth): add session invalidation via Redis
JWT tokens could not be revoked server-side without maintaining
a blacklist. Redis-based sessions solve this with O(1) lookup
and TTL-based cleanup.
Related: DEC-0001git commit -m "type(scope): description
WHY in the body.
Related: DEC-NNNN"✅ Changes committed
Commit: <sha7> — <description>
status.md updated.
Decisions recorded: [N / none]updated_atuxname/kodu
db733be
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.