targeted-artifact-commit-verification
Verify whether the exact files from a just-completed task are still uncommitted before creating another commit, especially in dirty repos with unrelated churn.
Best use case
targeted-artifact-commit-verification is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Verify whether the exact files from a just-completed task are still uncommitted before creating another commit, especially in dirty repos with unrelated churn.
Teams using targeted-artifact-commit-verification should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/targeted-artifact-commit-verification/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How targeted-artifact-commit-verification Compares
| Feature / Agent | targeted-artifact-commit-verification | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Verify whether the exact files from a just-completed task are still uncommitted before creating another commit, especially in dirty repos with unrelated churn.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Targeted Artifact Commit Verification Use when: - the repo has lots of unrelated modified/untracked files - the user asks to commit work from the current task - you need to avoid creating a duplicate/no-op commit - you suspect an auto-sync or prior commit may have already landed the exact artifacts ## Why this exists In a dirty checkout, `git status --short` alone can mislead you into thinking your task artifacts still need committing when only unrelated files remain dirty. A reliable pattern is to verify the exact task artifact set before staging or committing. ## Workflow 1. Identify the exact task files. Example: - `analysis/provider-session-ecosystem-audit.json` - `docs/reports/provider-session-ecosystem-audit.md` - `docs/reports/2026-04-23-provider-session-learning-transfer.md` 2. Check only those files for remaining diff. Run: - `git status --short -- <files...>` - `git diff --stat -- <files...>` 3. If both are empty, do not create a new commit yet. Treat this as a possible already-committed state, not a failure. 4. Confirm the files are tracked and identify the commit that already contains them. Run: - `git ls-files --error-unmatch <files...>` - `git log --oneline -n 5 -- <files...>` - if needed, `git show --stat --name-only --oneline <sha> -- <files...>` 5. Only create a new commit if the targeted files still have real uncommitted changes. ## Exit/handoff extension If the target artifacts are already committed but the repo is still dirty: - explicitly tell the user the requested task artifacts are already committed - name the commit SHA and subject - distinguish unrelated remaining churn from the completed task artifacts - if the user asks to prepare for exit, create a handoff doc rather than forcing another commit for the same files ## Recommended wording - "The files from this task are already in commit `<sha>`; there is no remaining diff for them." - "The repo is still dirty, but the remaining changes are unrelated to the completed artifact set." ## Pitfalls - Do not rely on repo-wide `git status` when the task only touched a few files. - Do not create a second commit just because the worktree is dirty. - Do not assume a newly written file is uncommitted; auto-sync or a prior commit may already include it.
Related Skills
subagent-write-verification
Independently verify subagent-claimed file writes with filesystem and git checks before treating the artifact as real, before committing it, and before referencing the path in downstream prompts.
verify-Codex-run-commit-vs-working-tree-before-closing
After a Codex implementation run, verify the claimed file set against the actual commit and working tree before treating the issue as fully complete.
tdd-verification-and-adversarial-review
Verify pre-written TDD tests pass, conduct adversarial code review on committed diffs, and route findings to existing issues
tax-form-navigation-verification
Systematic workflow for verifying tax software calculations against entry guide specifications
portable-pattern-verification-workflow
Multi-package implementation with verification strategy for cross-platform configuration hardening
multi-year-tax-filing-verification-workflow
Verify and reconcile complex multi-form tax filings by cross-referencing source documents, identifying data dependencies, and validating line-by-line against authoritative records.
evaluate-local-commits-via-cherry-pick-dry-run
Technique to identify which ahead commits contain real changes vs. already-merged or ephemeral content
adversarial-code-review-for-committed-diffs
Systematic process for reviewing already-committed code changes to catch type inconsistencies, edge cases, and docstring gaps
static-site-build-artifact-plan-review
Plan-review pattern for static-site fixes where the deployed artifact is generated from source files (e.g. sitemap/robots/static assets). Prevents review churn by separating durable regression checks from one-time migration verification and by validating built output, not just source files.
plan-review-handoff-verification
Verify a parked GitHub issue plan-review handoff across live labels, local markers, README rows, canonical review artifacts, and stale plan-body evidence before reporting next action.
plan-review-artifact-authority-and-approval-drift
Keep iterative plan-review artifacts truthful when external reruns overtake self-reviews or stale approval signals remain on older revisions.
plan-draft-review-artifact-truthfulness-and-issue-body-alignment
Keep plan drafts truthful during adversarial review loops by verifying real provider artifact state on disk and aligning the GitHub issue body to the bounded plan tranche before claiming approval-readiness.