home/dot_agents/skills/self-ship/SKILL.md
Self-review, improve, commit, and push code that Claude has just written. Use this skill when the user asks Claude to "self-ship", "review and ship", "review then commit and push", or wants Claude to autonomously review its own output, apply improvements, and publish the changes to the remote repository. Triggered by: "self-ship", "ship it", "review and push", "review my changes and commit", or similar requests to complete the full write → review → commit → push cycle.
npx skillsauth add hayatosc/dotfiles self-shipInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Autonomously review the code you just wrote, apply improvements, commit, and push.
Follow these steps in order:
Determine which files were modified in the current session. Check git status to confirm:
git status
git diff
Critically review every file you touched. Re-read each modified file as it now exists, not just the diff. Check for:
For each file, explicitly ask:
Write a brief internal review summary noting issues found.
Fix every issue identified in the review. Keep changes minimal and focused—do not refactor code unrelated to the review findings.
Re-read the improved files in full to confirm the final state is coherent, simple, and consistent. Do not stop at "the diff looks fine" if the resulting file still feels awkward.
Run tests if a test suite exists:
# run tests
Stage only the files you modified. Verify what is staged before committing:
git add <specific files>
git diff --staged
git commit -m <commit message>
Push to the current branch's upstream:
git push
If no upstream is set:
git push -u origin <current-branch>
--no-verify to bypass pre-commit hooks. If a hook fails, fix the underlying issue and create a new commit.main/master. Warn the user if the current branch is a protected branch..env, credentials, tokens). Warn the user if any staged file looks like it contains credentials.git add -A or git add . without explicitly checking what is staged.tools
Recommend a modern TypeScript toolchain. Use when choosing or updating a TypeScript stack for Node or CLI projects, libraries or packages, and web apps or APIs; selecting tsgo as the primary typechecker with tsc as compatibility fallback; recommending Hono, tsx, tsdown, Vite, Vitest, oxlint, oxlint-tsgolint, oxfmt, or deciding between bun and pnpm.
development
Implement, review, and refactor TypeScript code with a strong bias toward type safety. Use to fix TypeScript errors, remove `any` or unsafe `as`, review type safety, tighten TypeScript or lint settings, and ship ESM-first code that passes the repository's typecheck without weakening types.
development
Self-review, improve, commit, and push code that Claude has just written. Use this skill when the user asks Claude to "self-ship", "review and ship", "review then commit and push", or wants Claude to autonomously review its own output, apply improvements, and publish the changes to the remote repository. Triggered by: "self-ship", "ship it", "review and push", "review my changes and commit", or similar requests to complete the full write → review → commit → push cycle.
development
Analyze and execute behavior-preserving refactors in small, verified steps. Use when the user asks to refactor, clean up code structure, extract functions or modules, reduce duplication, improve maintainability, or modernize code without changing external behavior.