Agent Skillssupercheck-io/supercheck › supercheck-platform-features

supercheck-platform-features

GitHub

Supercheck平台功能开发技能,涵盖CLI、Web应用、AI测试修复、实时SSE及API工作流。涉及监控即代码、AI SRE交互、RBAC权限控制及异步事件处理等全栈开发任务。

.agents/skills/platform-features/SKILL.md supercheck-io/supercheck

Trigger Scenarios

需要实现或修改Supercheck CLI命令逻辑 开发Web端Playground、Requirements或Status Pages功能 集成AI测试修复或SRE调查接口 优化实时SSE事件流处理机制

Install

npx skills add supercheck-io/supercheck --skill supercheck-platform-features -g -y
More Options

Non-standard path

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

Use without installing

npx skills use supercheck-io/supercheck@supercheck-platform-features

指定 Agent (Claude Code)

npx skills add supercheck-io/supercheck --skill supercheck-platform-features -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-platform-features",
    "description": "Work on Supercheck CLI, AI test repair\/providers, realtime SSE, web playground, requirements, status pages, tags, or their APIs and user workflows."
}

Supercheck platform features

flowchart TD
  USER --> CLI[CLI and monitoring as code]
  USER --> WEB[Web app]
  WEB --> PLAY[Playground]
  WEB --> REQ[Requirements]
  WEB --> STATUS[Status pages]
  WEB --> AI[AI test repair]
  RUN[Executions] --> SSE[Realtime events]
  TAG[Tags] --> REQ
  TAG --> TEST[Test and monitor resources]

CLI

  • Source: cli; package: @supercheck/cli; binary: supercheck; license: AGPL-3.0-only; supported Node runtime begins at 20 unless package metadata changes.
  • Config is declarative monitoring-as-code. Config loading validates schema and rejects embedded live/test/trigger token patterns, including legacy trigger formats.
  • Secret variable values become environment references; file variables are excluded from generated config and use supported multipart/dashboard paths.
  • Authentication storage must use the platform-appropriate protected location and never print tokens.
  • Preserve interactive and non-interactive behavior for login, init, validate, diff, deploy, pull, destroy, doctor, health, jobs, tests, monitors, alerts, runs, tags, variables, notifications, and upgrade commands.
  • AI SRE CLI contracts are incident list/get/timeline/resolve, sre triage/investigate/ask/brief, and read-only service list/get/health/dependencies. Use /api/sre/* routes with unified CLI-token/session authentication; never call browser-only server actions from the CLI.
  • Keep AI SRE tenant scope and RBAC server-side: incident reads need sre_incident:view, resolution needs sre_incident:update, investigations need both incident and investigation investigate, service reads need sre_service:view, and live connector tools additionally need sre_connector:investigate.
  • Treat deep investigation as asynchronous HTTP 202 acceptance. Do not describe it as streaming; stream Copilot chat and evidence briefs only. In JSON mode emit NDJSON for streams, enforce bounded event buffers and idle timeout, support Ctrl-C, and never retry side-effecting POST requests after uncertain completion.
  • Require confirmation and a non-empty audited comment for incident resolution; --force is the automation escape hatch. Do not add runbook execution or private-agent startup until versioned server protocols, authorization, approvals, and operational safety contracts exist.
  • Notification provider JSON uses --payload (--data alias); retain legacy --config compatibility and reject multiple simultaneous payload options.
  • Human output goes to readable terminal streams; --json output must remain machine-parseable without progress/noise on stdout.
  • Subprocess signal termination and command failures return nonzero status. Retry only idempotent network requests.
  • Reusable CI distinguishes a job trigger key from the CLI token required for polling/waiting. Bind workflow inputs through environment variables/quoted arrays, not shell interpolation.
  • Verify with typecheck, lint, all Jest suites, build, and npm pack --dry-run; inspect packaged files and executable entrypoint.

Realtime SSE

  • Authenticate and authorize private subscriptions before opening streams; bind each stream to the permitted tenant/resource/run.
  • Use dedicated blocking Redis connections where QueueEvents is involved.
  • Emit typed, bounded events and heartbeats; preserve event ordering/identity expected by clients.
  • Close subscriptions, timers, listeners, and Redis resources on abort, completion, timeout, navigation, and errors.
  • Reconnection/resubscription must not leak other resources or create duplicate UI state.

Requirements

  • Requirements are traceability and coverage objects. They are never executed and do not own an independent pass/fail state.
  • Coverage is derived from linked test executions and must remain explainable.
  • Requirement, document, test, and tag links are tenant-scoped and protected against cross-project IDOR.
  • Browser requirements follow the recorder-first authoring path where applicable.
  • AI requirement processing uses sanitized bounded content and validated structured output.

Tags

  • Tags are scoped by organization and project and use consistent normalization/color/uniqueness rules.
  • Resource joins preserve tenant scope. Filtering semantics remain aligned across API, UI, CLI, and reports.
  • Deletion checks all supported relationships and returns conflict when a tag is still in use if that is the current contract.

Status pages

  • Public status endpoints expose an explicit safe field allowlist; admin APIs require RBAC and ownership.
  • Support public/private status, service associations, incidents/maintenance, branding policy, and verified custom domains according to current schema.
  • Custom-domain verification and any outbound DNS/HTTP checks use hardened resolution and SSRF controls.
  • Preserve cloud and self-hosted routing, CNAME guidance, TLS behavior, and branding configuration.

AI test repair and providers

  • Sanitize scripts, errors, logs, and user instructions before model use; defend against prompt injection and secret inclusion.
  • Keep provider credentials server-side and separate provider namespaces from storage credentials (notably Bedrock AWS versus S3/R2).
  • Validate generated code/patch structure and run it only through normal script validation and isolated execution.
  • Apply timeout, cancellation, retry, usage accounting, model allowlisting, and safe error behavior across supported providers.

Web playground

  • Playground execution is untrusted and ephemeral: enforce strict resource/time limits, isolation, rate limits, result bounds, and short retention.
  • It must not bypass normal script validation, SSRF policy, capacity controls, or secret boundaries.
  • Preserve zero-install UX while keeping durable project resources separate from temporary runs.

Verify

  • Test tenant/RBAC denial and malformed input for every feature API.
  • Test SSE disconnect cleanup and cross-tenant isolation.
  • Test CLI compatibility and JSON output as public contracts.
  • Use browser tests for recorder-first, status-domain, and realtime UI behavior that unit tests cannot prove.

Version History

  • 974a753 Current 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/feature-implementation/SKILL.md
.agents/skills/infrastructure-deployment/SKILL.md
.agents/skills/integrations-extensions/SKILL.md
.agents/skills/monitoring-alerts/SKILL.md
.agents/skills/security-auth/SKILL.md
.agents/skills/sre-operations/SKILL.md
.agents/skills/testing-qa/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
974a753
Hash
1f78b67f
Indexed
2026-09-22 16:21

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