본문으로 건너뛰기
cccskills
무료GitHub에 공개

shellscript-coder

Implement and refactor production shell scripts, command-line tools, automation, process wrappers, and Git or infrastructure helpers with reliable failures, useful logs, and machine-readable output.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

sno-ai/sno-station-skills스타 883(GitHub 883 + cccskills 0)

실행 점수 미검증

설치 방법 보기

포함된 파일(2)

  • SKILL.md7.4 KB
  • scripts/selftest/run-selftest.sh1.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Shell Script Coder

Every development task has a finite budget including setup, tests, and reporting. Before running tests, estimate duration from available timings and identify the changed behavior or directly affected consumer. If timing is unknown, state an estimate; do not build a timing system or run a preliminary suite. Full evaluation, unit, integration, or repository suites require the owner's explicit request, never a skill, PRD, review, or default command. Remove checks that neither prove the requested main function nor expose its defects. Repeat only after a relevant change or failure. Every new security check requires the owner's explicit approval for that specific check; remove auxiliary security, assertion, hash, or bookkeeping blockers of useful work.

Write small, production-grade Bash that fits the repository and remains understandable during failure. Local instructions define the runtime and style; they may strengthen these rules but not weaken reliability.

Read Before Writing

  • Confirm the required shell from the shebang, callers, CI, and repository docs. Use Bash when the target is Bash; do not claim POSIX portability unless it is required and tested.
  • Read the complete target script, immediate callers, sourced libraries, config, and nearby tests. Reuse existing argument, logging, state, and error conventions.
  • Before changing a tool version, or using a third-party CLI, API, or service in a way neither the PRD nor existing scripts already show, read its current official documentation; for a version change, read the release notes between the two versions. Name the page and version in the report. When a PRD governs the work and lacks or contradicts that fact, add it to the PRD's execution notes.
  • Decide the observable success result, failure result, exit codes, and verification command before editing.
  • Preserve unrelated work. Touch only requested behavior and remove only orphans created by the change.

Boundaries

  • No backward-compatibility aliases, dual paths, legacy flags, or fallbacks unless the user confirms an external published contract requires them.
  • No speculative options or abstractions. Prefer one explicit path over a configurable framework.
  • Use deterministic shell or an existing deterministic helper for routing, parsing, retries, validation, and state transitions. Never ask a model to decide them.
  • Never use eval or construct executable commands in strings. Use functions and arrays.
  • Never print secrets, tokens, credential-bearing URLs, raw environment dumps, or sensitive command lines.

Reliability

  • Start new Bash scripts with set -Eeuo pipefail unless a documented caller contract makes one option incompatible. Handle expected nonzero statuses locally instead of globally weakening failure behavior.
  • Quote every expansion unless intentional word splitting is proven and commented. Use arrays for argument lists, -- before user-controlled paths, [[ ... ]] for tests, and printf rather than echo for data.
  • Validate required arguments, enums, paths, and dependencies before mutation. Reject unknown flags and malformed state with a specific message and nonzero exit.
  • Keep functions focused, use local, pass values explicitly, and avoid hidden mutable globals. Constants are uppercase and readonly where practical.
  • Clean temporary files, locks, mounts, and child processes with traps or an explicit cleanup function. Preserve the original exit status.
  • Write durable files atomically: create in the destination directory, flush when required, then rename. Never expose a partially written state file.
  • Use flock or the repository's existing lock for shared state. Keep the critical section narrow and define what a lock timeout means.
  • Make retryable operations idempotent. Bound retries, use a fresh observation before retrying, and distinguish “already completed” from “failed.”
  • Bound external commands with a timeout when they can hang. Propagate signals to children and verify termination when orphaned processes would be harmful.
  • For work that may exceed two minutes, emit per-unit progress with completed/total, rate, and ETA.

Messages and Agent-Facing Interfaces

Design messages as operational evidence, not narration.

  • Keep stdout reserved for the primary result. Send progress, diagnostics, and errors to stderr. If --json is supported, stdout contains exactly one valid JSON result and no decoration.
  • Error messages name: operation, target, failed condition, consequence, and the next safe action. Include relevant identifiers and paths; omit secrets and noisy stack traces unless a debug mode already exists.
  • Progress messages identify the current stage and include stable context so a detached AI agent can tell which task and resource produced the line.
  • Use stable, documented exit codes when callers branch on failure classes. Otherwise use 0 for success and a small nonzero set; do not invent dozens of codes.
  • Prefer non-interactive flags and stdin over prompts. A command intended for agents must support --help, reject missing inputs immediately, and never wait silently for a terminal response.
  • Make input contracts explicit: required flags, accepted values, path ownership, preconditions, and whether rerunning is safe.
  • Make output easy to inspect and bind to the action. For a new JSON interface, prefer a minimal envelope such as ok, operation, target, and either result or error; include recorded commits, digests, or state paths when they are the proof a controller needs.
  • Generate JSON with jq or another repository-standard encoder, never by string concatenation.

Failure Design

For every external command or multi-step mutation, answer:

  1. What can fail or time out?
  2. What state may already have changed?
  3. Can the exact operation be retried safely?
  4. What evidence lets an AI agent choose retry, repair, or stop?

Fail closed for publication, deletion, credentials, shared state, and Git ref movement. A partial success must be recorded explicitly; do not collapse it into a generic failure that encourages a destructive retry.

Verification

Run the narrowest relevant checks first:

  1. bash -n on every touched Bash file.
  2. The repository's ShellCheck or code-check command when configured; do not add a new lint dependency just for ceremony.
  3. Focused tests for one accepted path and the nearest rejected boundary.
  4. When relevant, tests for timeout, interruption, retry/idempotency, concurrent writers, paths with spaces, and partial failure.
  5. Stop after the affected checks pass; the repository's default suite is not permission to expand the test scope.

Use temporary directories, local bare Git remotes, and boundary fakes that assert observable behavior. Do not mock repository-internal logic. Re-read the final diff and remove any line that does not improve required correctness, diagnostics, or operability.

Delivery

Report the changed behavior, input/output contract, important failure semantics, and exact verification commands with results. State any unverified external dependency plainly; never report success over a failing or skipped required check.

<!-- reminders:start --> <!-- reminders:end -->

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Answer how long agent work will take, how much longer active work needs, or what clock time applies. Estimate full AI-agent wall time, measure active progress first, and get owner-facing times from `sno report-time`. Never estimate human-developer time.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

sno-ai/sno-station-skills8832026년 10월 25일 업데이트

Prove that a reported run caused its intended real effect. Walk the executor path from entry to effect, capture one observable per hop, and report a result a no-op could not produce.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

sno-ai/sno-station-skills8832026년 10월 25일 업데이트

Give the owner one page when they come back from sleep, a meeting or a long run: what got done, what is stuck, what waits for their answer, and what it cost in quota. Use when the owner asks what happened while they were away, wants a status page, or when you finish a long stretch of work and must report it.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

sno-ai/sno-station-skills8832026년 10월 25일 업데이트

Report how many problems the two brains found: mutual review (the other model checks the work, from the peer-review records) and self-check (an agent finds its own error in its own conversation, judged by that agent's own model), side by side. Use when the owner asks whether the second agent or the reviews are worth it, or wants the week's review results.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

sno-ai/sno-station-skills8832026년 10월 25일 업데이트

charter

무료

Write, revise or review a charter: the one document that tells an executor what to deliver, what is out of bounds, what the owner already decided, and how each success check will be proven. Use when work needs a written brief before someone else does it, or when asked to write, change or check a charter.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

sno-ai/sno-station-skills8832026년 10월 25일 업데이트

Route production coding tasks from Claude Code to the user-level Codex Shell, TypeScript, Python, or Rust workflow through a direct `codex exec` run. Use for "codex-coder", "ask Codex to write code", "generate with Codex", language migrations, or mixed Shell/TypeScript/Python/Rust implementation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

sno-ai/sno-station-skills8832026년 10월 25일 업데이트

sno-ai의 스킬 모두 보기

이 스킬의 문제 신고