跳到正文
FunCoding

ship-pack

Audits a project for submission readiness by checking README completeness, scanning for secret leaks, validating the submission checklist, and emitting a safe packaging command. Use immediately before submitting.

Star
749
分类
其他
许可证
MIT
最近提交
2026年10月22日

skills/ship-pack/SKILL.md

在 GitHub 上查看

ship-pack

Input contract

Required:

  • repo_root: project root

Optional:

  • HACKATHON_SHIP_WEBHOOK: HTTP endpoint that receives the ship audit as JSON after it is written. Delivery is non-fatal; failure only prints a warning.
  • HACKATHON_SHIP_WEBHOOK_TIMEOUT_SECONDS: request timeout (default 3).

Execution

1. README check

For each of the following, mark present / missing:

  • Project name
  • One-liner description
  • Install steps
  • Run steps
  • Environment variables (with .env.example)
  • Demo steps
  • Tech stack

2. Secret scan

Walk the repo (excluding node_modules, .git, dist, build, .hackathon).

Search for:

  • .env, .env.* (except .env.example)
  • API_KEY=, SECRET=, TOKEN=, PASSWORD=, PRIVATE_KEY=
  • AWS / GCP / Azure credential patterns
  • Hard-coded JWTs (long base64 strings in code)

Emit one line per finding. Refuse to proceed if a finding exists.

3. Submission checklist

  • Source code committed
  • README present
  • Demo video / link present
  • Screenshots present
  • Deployment link present
  • Env var documentation present
  • Dependency files committed (package.json, requirements.txt, etc.)
  • Run commands documented

4. Reproducibility test

The judge must be able to git clone && <install> && <run> in < 5 minutes. Emit reproducible: yes | no with a one-line reason.

5. Packaging command

Generate a shell command that excludes:

  • node_modules, .venv, __pycache__
  • .env, .env.* (except .env.example)
  • Local caches (.cache, .next, .turbo)
  • Build artifacts (dist, build, coverage)

Default output: tar czf submit.tar.gz --exclude=... .

Output contract

Files written:

  • .hackathon/state/ship.json (matches src/state/schemas/ship.schema.json)
  • ship.sh (a single-line packaging command, only emitted on PASS)

Acceptance criteria

  • Checks for secret leaks (fails if any found).
  • Checks README for required sections.
  • Checks run steps are documented.
  • Checks submission checklist items.
  • Generates a safe packaging command.
  • Never includes real secrets in the submission package.

Failure modes

ModeBehavior
Secret leak detectedFAIL loud, print the offending line, refuse to ship
README.md missingFAIL loud; ask to write the README first
package.json has placeholderWARN; suggest a single sed/fix
Git working tree dirtyWARN; offer a git stash recipe, do not auto-stash
No .hackathon/state/ship.jsonRefuse; cannot audit what was never verified

Trigger phrases

  • "submit"
  • "ship it"
  • "package for submission"
  • "is it safe to commit"
  • "secret leak check"

相似的 Skill

software-factory

MAmattpocock/skills336k近 7 天新增 4,217 个 star

claude-handoff

MAmattpocock/skills336k近 7 天新增 4,217 个 star

agent-payment-x402

AFaffaan-m/ECC314k近 7 天新增 3,503 个 star

agent-self-evaluation

AFaffaan-m/ECC314k近 7 天新增 3,503 个 star

bengali-nlp

AFaffaan-m/ECC314k近 7 天新增 3,503 个 star

ponytail-gain

DIDietrichGebert/ponytail202k近 7 天新增 4,226 个 star