Agent Skills › supercheck-io/supercheck › supercheck-feature-implementation

supercheck-feature-implementation

GitHub

指导 Supercheck 功能端到端实现,涵盖架构选型、代码开发、测试及文档更新。

.agents/skills/feature-implementation/SKILL.md supercheck-io/supercheck

Trigger Scenarios

需要实现新功能或修改现有功能 涉及全栈开发任务

Install

npx skills add supercheck-io/supercheck --skill supercheck-feature-implementation -g -y
More Options

Non-standard path

npx skills add https://github.com/supercheck-io/supercheck/tree/main/.agents/skills/feature-implementation -g -y

Use without installing

npx skills use supercheck-io/supercheck@supercheck-feature-implementation

指定 Agent (Claude Code)

npx skills add supercheck-io/supercheck --skill supercheck-feature-implementation -a claude-code -g -y

安装 repo 全部 skill

npx skills add supercheck-io/supercheck --all -g -y

预览 repo 内 skill

npx skills add supercheck-io/supercheck --list

SKILL.md

Frontmatter
{
    "name": "supercheck-feature-implementation",
    "description": "Implement a new or changed Supercheck feature end to end, such as adding an API route or server action, a new test, job, or monitor capability, across schema, auth\/RBAC, services, routes\/actions, UI, queues\/workers, CLI\/recorder, tests, docs, and deployment contracts."
}

Supercheck feature implementation

Use the domain skill matching the feature. For cross-cutting work, load each applicable domain skill; every skill is self-contained and available directly under .agents/skills.

flowchart LR
  INTENT[User intent] --> CONTRACT[Behavior and ownership contract]
  CONTRACT --> DATA[Schema and migration]
  CONTRACT --> AUTH[Auth and RBAC]
  DATA --> SERVICE[Business logic]
  AUTH --> SERVICE
  SERVICE --> API[Routes and actions]
  SERVICE --> QUEUE[Queue and worker]
  API --> UI[UI, hooks, CLI, recorder]
  QUEUE --> TEST[Test matrix]
  UI --> TEST
  TEST --> DOC[Docs and skills]

Choose the required layers

Feature shape Typical layers
UI-only Component/page, accessibility, client/server boundary, UI tests
App CRUD Schema/migration, validation, RBAC, service, route/action, hook/UI, audit, tests
App and worker App CRUD plus shared queue contract, processor/service, capacity/cancellation, integration tests
External API/CLI Bearer auth, stable schemas/status/output, rate limits, compatibility tests, docs
Recorder/browser Extension permissions/messages, app bridge/API, browser tests, store/release docs
Provider integration Credential/webhook boundary, idempotency, durable state, failure/recovery, provider acceptance
Infrastructure Config/manifests, secrets, security controls, rollout/rollback, rendered/live validation

Only add layers the behavior needs. Avoid speculative tables, CRUD, queues, abstractions, and client state.

Implementation workflow

  1. Define user-visible behavior, owning organization/project scope, authorization resource/action, state transitions, limits, retention, side effects, and failure behavior.
  2. Read neighboring code and tests. Reuse central helpers: auth context (app/src/lib/auth-context.ts), RBAC (app/src/lib/rbac/), validation (app/src/lib/validations/), security (app/src/lib/security/), queues (app/src/lib/queue.ts), worker utilities (worker/src/common/utils/), storage, and logging.
  3. Identify public and rolling-deployment contracts before changing schema, API, queue payload, statuses, CLI JSON, extension messages, or environment variables.
  4. Implement the smallest complete vertical slice, preserving cloud and self-hosted behavior.
  5. Add regression tests for happy, denied, malformed, cross-tenant, dependency-failure, retry/idempotency, cancellation, and cleanup paths as applicable.
  6. Update public docs, examples, environment/deployment configuration, and affected agent skills in the same change.

Data and API rules

  • Determine scope from the owning resource; authorize before reads/mutations and scope queries at the database boundary.
  • Validate all external input using existing schemas/patterns and bound strings, arrays, files, URLs, and result sizes.
  • Generate/review database migrations and handle existing data, uniqueness, indexes, deletion, and version skew.
  • Keep internal errors in structured/redacted logs and return stable safe public errors/status codes.
  • Audit security, membership, secret, billing, and administrative mutations.

Background and external side effects

  • Keep app/worker queue contracts in parity and compatible during rolling deployments.
  • Do not enqueue decrypted secrets. Resolve scoped values immediately before isolated use.
  • Make retries safe and idempotent; use durable idempotency keys/records for provider, webhook, usage, and notification effects.
  • Propagate cancellation and cleanup through every layer; release capacity/resources exactly once.
  • Use SSRF-safe fetching for user-controlled URLs and verify signatures for inbound provider events.

UI and public client rules

  • Prefer Server Components and direct React Query data; keep query keys/invalidation exact.
  • Preserve loading, empty, error, keyboard, focus, labels, and responsive states.
  • CLI JSON and exit codes, recorder messages, public APIs, and configuration formats are compatibility contracts.
  • Server-side enforcement remains authoritative for permissions, entitlements, limits, and feature modes.

Completion gate

  • Run focused then broad checks from affected package directories (commands in supercheck-testing-qa, or /check in Claude Code).
  • Verify diff cleanliness and no generated/secret files.
  • State local evidence and outstanding browser, CI, provider, deployment, billing, or production gates separately.
  • Do not claim merge/release readiness only because implementation tests pass.

Version History

  • 8a9bade Current 2026-11-03 04:16

    强化 Claude Code 权限控制,修复命令重写匹配问题,优化技能加载与质量门禁。

  • 974a753 2026-09-22 16:21

Same Skill Collection

.agents/skills/architecture/SKILL.md
.agents/skills/code-review/SKILL.md
.agents/skills/data-storage/SKILL.md
.agents/skills/execution-engine/SKILL.md
.agents/skills/infrastructure-deployment/SKILL.md
.agents/skills/integrations-extensions/SKILL.md
.agents/skills/mcp-server/SKILL.md
.agents/skills/monitoring-alerts/SKILL.md
.agents/skills/platform-features/SKILL.md
.agents/skills/security-auth/SKILL.md
.agents/skills/sre-operations/SKILL.md
.agents/skills/testing-qa/SKILL.md
.agents/skills/ui/SKILL.md
.github/skills/code-review/SKILL.md
.github/skills/docker-compose-deployment/SKILL.md
.github/skills/feature-implementation/SKILL.md

Metadata

Files
0
Version
8a9bade
Hash
cefc3a45
Indexed
2026-09-22 16:21

홈 - 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 09:02
浙ICP备14020137号-1