AGENT SKILL

wrap-up

Session-end safe closeout. Updates STATUS, verifies you are on a feature branch (never main), security-greps the diff for secrets, makes a conventional commit (no AI-tool mentions), then asks for approval before pushing and opening a PR. Use this to properly close a development session. Side-effecting and gated on explicit user approval; run explicitly.

License 许可
MIT
最近更新
2026-06-23
Stars
★ 0
Forks
0

01 前言 Front Matter

name
wrap-up
description
Session-end safe closeout. Updates STATUS, verifies you are on a feature branch (never main), security-greps the diff for secrets, makes a conventional commit (no AI-tool mentions), then asks for approval before pushing and opening a PR. Use this to properly close a development session. Side-effecting and gated on explicit user approval; run explicitly.
disable-model-invocation
true

03 SKILL.md 正文

wrap-up — Session Completion Workflow

Close a session cleanly: status → branch check → security grep → commit → approval → push + PR.

Usage: /wrap-up


Step 1: Update STATUS

Update STATUS.md (docs/STATUS.md or docs/status/STATUS.md):

  • Mark completed tasks
  • Refresh current goals / phase
  • Add to "Recently Completed"
  • Bump the last-updated date

Step 2: Git State + Branch Guard

git status
git branch --show-current
git diff --stat

Branch guard: if the current branch is main or master, STOP. Do not commit. Create a feature branch first:

git checkout -b feature/«descriptive-name»

Step 3: SECURITY GREP (mandatory)

Scan what is about to be committed for secrets:

git diff --cached --name-only | xargs grep -lE "(API[_-]?KEY|SECRET|PASSWORD|TOKEN|BEGIN [A-Z ]*PRIVATE KEY|[a-z]+://[^ ]*:[^ ]*@)" 2>/dev/null
# Also scan unstaged tracked changes
git diff --name-only | xargs grep -lE "(API[_-]?KEY|SECRET|PASSWORD|TOKEN)" 2>/dev/null

Never commit these:

  • .env*, *.pem, *.key, credentials*.json
  • database dumps / backups
  • any file containing a real key or token

Confirm .gitignore covers .env, .env.local, *.pem, *.key, backups/. If a secret is staged, STOP and remediate before continuing.

Step 4: Conventional Commit

git add «specific files»   # prefer explicit paths over -A
git commit -m "type: concise summary

- detail
- detail"

Commit message rules:

  • Conventional prefix: feat: | fix: | docs: | refactor: | test: | chore:
  • Summary ≤ 72 chars
  • NO mention of "claude", "anthropic", or any AI tool anywhere in the message

Step 5: Approval Gate

Present and WAIT for explicit approval:

WRAP-UP SUMMARY
Branch: [name]   Commit: [hash] [summary]

Changes:
| File | What changed |
|------|--------------|
| ...  | ...          |

Ready to push branch and open a PR. Approve? (yes/no)

Do not push without a clear "yes".

Step 6: Push + Open PR

git push -u origin "$(git branch --show-current)"
gh pr create --title "type: description" --body "## Summary
- ...

## Test Plan
- [ ] ..."

PR body must not mention AI tools.

Safety Checklist

  • [ ] On a feature branch (not main/master)
  • [ ] Security grep clean — no secrets staged
  • [ ] .gitignore covers env/keys
  • [ ] Conventional commit, no AI-tool mentions
  • [ ] User approved before push/PR

04 同仓库更多 Skills

Elad73
Elad73/agentic-base-layer

wake-up

Session-start context sync. Reads project STATUS, git state, and runs a quick health check, then emits a short (<15 line) announcement of where things stand and the single best next step. Use this at the beginning of a working session to re-establish context fast. Does NOT re-read CLAUDE.md (already in the system prompt). Read-only and fast.

★ 0
Elad73
Elad73/agentic-base-layer

station

End-of-session composition that chains retrospect → document → cleanup → wrap-up into one closeout pipeline. Use this to fully close a working session — capture learnings, sync docs, prune artifacts, then commit and open a PR — without forgetting a step. Side-effecting; honors each sub-skill's confirmation and approval gates. Run explicitly.

★ 0
Elad73
Elad73/agentic-base-layer

retrospect

Post-session learning capture. Mines the current conversation for reusable patterns, pitfalls, architecture decisions, performance and security insights, then appends them to the project knowledge registry. Use this at the end of a working session, after a bug is fixed, or after a non-obvious decision is made — so the next session starts smarter. Writes structured entries to .claude/knowledge/REGISTRY.md.

★ 0
Elad73
Elad73/agentic-base-layer

pre-ship

Mandatory pre-commit quality gates — type-check, lint, test, build — run in order and halting on the first failure. Use this BEFORE committing any change that touches application code, so failures are caught while context is still fresh instead of by CI. Surfaces the failing tool's verbatim error and refuses to proceed until gates pass.

★ 0
Elad73
Elad73/agentic-base-layer

document

Code-is-truth documentation sync. Detects drift between the codebase and project docs (STATUS.md, CLAUDE.md, README), then applies targeted edits so docs describe what the code actually is. Use this after shipping features, before a release, or when docs feel stale. Secret-scans every doc before writing. Makes small surgical edits, never wholesale rewrites.

★ 0
Elad73
Elad73/agentic-base-layer

debug-like-expert

Deep analysis debugging mode for complex issues. Activates methodical investigation protocol with evidence gathering, hypothesis testing, and rigorous verification. Use when standard troubleshooting fails or when issues require systematic root cause analysis.

★ 0