协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
git-workspace-review【开发与工程】Verifies workspace state and staged changes as a read-only preflight. Use before commits or PRs to confirm staged set is clean and correct.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: git-workspace-review description: Verifies workspace state and staged changes as a read-only preflight. Use before commits or PRs to confirm staged set is clean and correct. alwaysApply: false category: workspace-ops tags:
matcher: Bash
command: "# Log git analysis commands\nif jq -r '.tool_input.command // empty' | grep -qE
\ "git (status|diff|log|show|branch)"; then\n echo "[skill:git-workspace-review]
\ Git analysis initiated: $(date)" >> ${CLAUDE_CODE_TMPDIR:-/tmp}/skill-audit.log\n
fi\n"
once: true
Stop:
command: 'echo "[skill:git-workspace-review] === Analysis completed at $(date) ===" >> ${CLAUDE_CODE_TMPDIR:-/tmp}/skill-audit.log
' role: library
sanctum:commit-messages)sanctum:pr-prep)Run git status after review to verify workspace state matches expectations.
Run pytest plugins/sanctum/tests/test_git_workspace_review.py to validate review workflow.
Use this skill before workflows that depend on repository state, such as commit message generation, PR preparation, or release notes. Run it once per session or whenever staged changes are modified.
git-review:repo-confirmedgit-review:status-overviewgit-review:code-quality-checkgit-review:diff-statgit-review:diff-detailsMark each item as complete as you finish the corresponding step.
repo-confirmed)Run pwd to confirm you are in the correct repository directory. Execute git status -sb to view the current branch and short status, then capture the branch name and upstream information.
status-overview)Analyze the git status -sb output for staged and unstaged changes. Stage or unstage files so that subsequent workflows operate on the intended diff.
code-quality-check)Run make lint from the repository root to validate code quality
before committing. It checks ruff format, runs the per-plugin ruff
check, and runs bandit. It rewrites nothing: a check that edits the
tree cannot report the diff it was asked to find. When it fails it
names make fix, which is the mutating pair (ruff format plus
ruff check --fix). The root Makefile defines no format target, and
the plugin Makefiles that define one only apply inside their own
directory.
Fix any errors immediately. Do not bypass pre-commit hooks with
--no-verify. This check identifies issues early and avoids
late-stage pipeline failures.
diff-stat)Run git diff --cached --stat for staged changes (or
git diff --stat for unstaged work). Note the number of
files modified and identify hotspots with large insertion
or deletion counts.
When sem is available (see leyline:sem-integration),
also run sem diff --format plain --staged to display an entity-level
summary alongside the stat output. This shows which
functions, classes, and methods changed rather than just
line counts.
diff-details)Run git diff --cached to examine the actual changes. For unstaged work, use git diff. Identify key themes, such as Makefile adjustments or new skill additions, to provide context for downstream summaries.
Complete all progress tracking items. You should have a clear understanding of modified files and areas, and the correct work should be staged. Subsequent workflows can then rely on this context without re-executing git commands.
If pre-commit hooks block a commit, resolve the reported issues instead
of using --no-verify. make lint fixes styling automatically and
surfaces the logical failures that remain. If merge conflicts occur, use
git merge --abort to return to a clean state before retrying.