跳到正文
cccskills
免费在 GitHub 公开

ts-coder

Implement and refactor production TypeScript/TSX, strict types, APIs, and migrations.

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

sno-ai/sno-station-skills星标 883(GitHub 883 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(2)

  • SKILL.md5.4 KB
  • scripts/selftest/run-selftest.sh1.2 KB

SKILL.md(原文)

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

TypeScript 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 TypeScript that fits the current repository, stays small, and is easy to verify. Local repo instructions add project-specific detail; they do not weaken these rules.

Boundaries

  • No backward compatibility by default. No legacy paths, compatibility wrappers, migration shims, dual-format support, or fallback behavior unless explicitly requested. A published external contract is the only exception, and only when the user or repo instructions confirm it is published.
  • Read before writing. Runtime and package manager from local files (package.json, lockfiles, tsconfig*); the target file, its exports, direct callers, shared helpers, and tests. Reuse source-of-truth schemas/types instead of duplicating shapes.
  • Official docs for third-party behavior. Before changing a dependency version, or using a third-party API, SDK, CLI, or service in a way neither the PRD nor existing code already shows, 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.
  • Surgical changes. Touch only files the task needs. No unrequested options/flags/configurability, no new helpers that duplicate existing utilities, no formatting churn, renames, or opportunistic cleanup.
  • Deterministic code for deterministic decisions. Routing, retries, status handling, validation, and parsing belong in code, never in a model call.
  • Conflicting local patterns: pick one source of truth (by authority, recency, test coverage), state the choice, flag the other for cleanup — never blend into a third style.
  • State uncertainty that affects behavior, public API, data shape, or migration semantics before coding, and decide the verification command before coding.

Standards

  • unknown + narrowing over any. Type guards or schema validation over assertions; a narrow assertion only at a validated boundary, with a short comment. No non-null assertions — narrow with control flow or fail early.
  • Exported functions explicitly typed. Named exports unless the repo or framework requires default exports.
  • Discriminated unions where impossible states matter; as const satisfies for literal maps that need exhaustiveness.
  • Functions under ~50 lines, max 3 indentation levels; extract only when it clarifies real complexity.
  • Validate external boundaries with the repo's existing parser/schema library (zod, valibot, generated types, or local validators). Fail clearly — no fallback behavior that hides invalid state.
  • Clean up timers, listeners, subscriptions, and abort controllers in finally or explicit teardown.
  • Keep fixed-format parsing and protocol literals in code; use existing translation resources only for text that requires localization. Reuse the repository's configuration approach rather than introducing a configuration or translation system for an ordinary change.

Migrations

Hard cut by default: replace the old path rather than running old and new together. No compatibility aliases, duplicate parsing, legacy env names, or fallback resolution unless explicitly requested. For a published package, inspect its actual external contract and the owner's settled instruction. Preserve that contract unless a breaking change is authorized. Resolve routine implementation choices directly; ask only if a new fact requires an owner decision, and continue independent work. Preserve unrelated local modifications and user work; never rewrite history or reset files to make a migration easier.

Verification

Narrowest relevant checks first, broader when the change touches shared behavior:

  1. Typecheck the edited package.
  2. Run focused tests for changed behavior.
  3. Lint/format only through the repo's existing commands.
  4. For shared/public behavior, check the changed behavior and directly affected consumers. Never expand to a package-wide or workspace-wide test suite without an explicit human request.

Every "done" claim must trace to a command actually run this session; if a check fails, report the failure with its output — never report done with errors outstanding.

Delivery

Report: what changed and why; the compatibility decision if the task touched public API, data formats, env/config names, or migration behavior; the verification commands actually run and their results; any remaining conflict or cleanup item intentionally not changed.

评价

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

评论

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

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

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

0 / 1000 字

此表单受 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 的全部技能

报告此技能的问题