跳到正文
cccskills
免费在 GitHub 公开

ship

Lint, build, test, verify specs, commit, and push — one micro-commit to remote. Validates the working tree, verifies spec alignment, and creates an atomic save point.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md4.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Ship — validate, commit, and push micro-commits

Validate the working tree, verify spec alignment, create a micro-commit, and push it to the remote — a single atomic "save point."

Trigger

When a small, bounded unit of work is completed and needs to be shipped safely.

Goal

Ensure the codebase is green (lint, build, test, typecheck), verify that changed code stays aligned with its specs, create a well-formed micro-commit, and push to the current remote branch.

Boundaries

  • In scope: running quality gates, verifying spec compliance, updating assessment retrospective, creating and pushing atomic commits.
  • Out of scope: fixing lint/type/test failures (dev), authoring or amending specs (spec), creating Linear issues (lead).

Pipeline

Execute these steps in order. Stop immediately on any failure — do not skip steps or push broken code.

Step 1 — Inventory

Run in parallel:

  • git status — identify changed files
  • git diff --staged and git diff — understand the actual changes
  • git log --oneline -5 — read recent commit style

If there are no changes (clean working tree), stop and tell the user.

Step 2 — Quality Gates

Run in parallel:

  • pnpm lint
  • pnpm build
  • pnpm test:run
  • pnpm check

All four must pass. On failure: report which gate failed with the error output and stop. Do not attempt to fix — that is the developer's job.

Step 3 — Spec Verification

For every changed file, check whether a related spec exists under specs/. Use the file path and component name to locate relevant specs.

For each relevant spec found:

  1. Read the spec's Regression Guardrails and Definition of Done sections.
  2. Verify that the changes do not violate any guardrail.
  3. Verify that the changes do not regress any Definition of Done item that was previously satisfied.
  4. If the change modifies behavior covered by a spec, verify the spec was updated in the same changeset (same-commit rule).

If a spec violation or missing spec update is found: report it and stop. Do not commit.

If no spec exists for the changed files: that's fine — not all files have specs. Note it and proceed.

Step 3.5 — Assessor Retrospective (Double-Loop Learning)

For all changed files identified in Step 1, check if there are any related assessments in docs/assessments/ledger.jsonl with execution_status: "pending". An assessment is related if its slug, target files, or challenger title overlap with the files being committed.

If matching pending assessments are found:

  1. Prompt for Retro Feedback: Ask the user if the implementation of the assessment succeeded, and ask for any unforeseen difficulties or lessons.
  2. Update the Ledger: Update the corresponding JSON line in docs/assessments/ledger.jsonl:
    • "execution_status": "success" (or "failed")
    • "execution_retro": A brief summary of the implementation results (e.g. build results, user feedback)
    • "lessons_learned": Any specific lessons or guidelines surfaced.
  3. Consolidate Lessons: Update docs/assessments/lessons.md with the new heuristics under ## Heuristics & Lessons.
  4. Stage Retro Files: Stage the updated docs/assessments/ledger.jsonl and docs/assessments/lessons.md so they are automatically included in the commit.

Step 4 — Stage & Commit

  1. Stage all relevant changed files with git add (specific files, not -A).
  2. Draft a commit message:
    • Use conventional commit format: type(scope): description
    • Keep the subject line under 72 characters
    • Match the style of recent commits from Step 1
    • If the user provided a message via $ARGUMENTS, use it as the basis
  3. Create the commit.

Step 5 — Push

  1. Check if the current branch tracks a remote. If not, push with -u origin HEAD.
  2. Push to the remote.
  3. Report success: branch name, commit hash (short), and commit message.

Principles

  • Atomic save points — Each /ship is one micro-commit. Small, reversible, traceable.
  • Green before push — Never push code that fails any quality gate.
  • Specs are law — Changed behavior must have a matching spec update. No silent drift.
  • No fixes in flight — If something fails, stop and report. The developer fixes; then runs /ship again.
  • No force push — Always a regular push. If the remote has diverged, stop and tell the user.

Instructions

$ARGUMENTS

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

assemble

免费

Dev-Critic loop: implement, review, fix — repeat until clean

中文简介正在准备中。当前显示原文说明。

villetakanen/asdlc-io452026年10月9日 更新

assess

免费

Assess source material against the ASDLC Knowledge Base and produce an evidence-calibrated Content Review Report.

中文简介正在准备中。当前显示原文说明。

villetakanen/asdlc-io452026年10月9日 更新

critic

免费

Perform an adversarial review of the current uncommitted changeset, validating it against project contracts and architectural intent.

中文简介正在准备中。当前显示原文说明。

villetakanen/asdlc-io452026年10月9日 更新

curator

免费

Triage the content corpus against the latest GSC snapshot and produce a prioritized refresh report. Read-only: reports, never edits.

中文简介正在准备中。当前显示原文说明。

villetakanen/asdlc-io452026年10月9日 更新

dev

免费

Implement features, fix bugs, and keep the codebase healthy and maintainable. Works from a defined PBI, issue, or task description.

中文简介正在准备中。当前显示原文说明。

villetakanen/asdlc-io452026年10月9日 更新

geo-audit

免费

GEO+SEO audit of asdlc.io — analyzes the codebase for Generative Engine Optimization across AI citability, technical infrastructure, content quality, schema markup, and knowledge base discoverability. Produces a composite GEO Score (0-100) with prioritized action plan.

中文简介正在准备中。当前显示原文说明。

villetakanen/asdlc-io452026年10月9日 更新

查看 villetakanen 的全部技能

报告此技能的问题