Agent Skillssupercheck-io/supercheck › supercheck-data-storage

supercheck-data-storage

GitHub

处理Supercheck数据的存储与生命周期,包括PostgreSQL元数据、S3/MinIO对象存储管理、安全URL生成、保留策略清理及审计日志。

.agents/skills/data-storage/SKILL.md supercheck-io/supercheck

Trigger Scenarios

处理数据存储和访问 执行数据保留清理 生成或导出报告

Install

npx skills add supercheck-io/supercheck --skill supercheck-data-storage -g -y
More Options

Non-standard path

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

Use without installing

npx skills use supercheck-io/supercheck@supercheck-data-storage

指定 Agent (Claude Code)

npx skills add supercheck-io/supercheck --skill supercheck-data-storage -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-data-storage",
    "description": "Work on Supercheck PostgreSQL data, S3 or MinIO artifacts, signed URLs and asset proxying, retention cleanup, dashboard\/report queries, exports, or audit logging."
}

Supercheck data storage and lifecycle

flowchart TD
  WORKER --> DB[(PostgreSQL metadata)]
  WORKER --> OBJ[(S3-compatible artifacts)]
  API --> ACCESS[Authorized signed URL or asset proxy]
  CLEAN[Lifecycle scheduler] --> DB
  CLEAN --> OBJ
  MUT[Security-sensitive mutation] --> AUDIT[Audit trail]

PostgreSQL and object storage

  • PostgreSQL holds relational state and artifact metadata; S3/MinIO-compatible stores hold large reports, traces, screenshots, files, and exports.
  • Generate object keys server-side from trusted tenant/resource identifiers. Never accept arbitrary bucket/key pairs or filesystem paths from clients.
  • Authorize ownership before issuing short-lived signed URLs or proxying an object.
  • Asset proxying allows only configured storage origins/keys and must not become a generic server-side fetch endpoint.
  • Uploads enforce object class, MIME/type expectations, byte limits, timeouts, and bounded streaming. Avoid buffering untrusted large objects in app memory.
  • Preserve compatibility across cloud S3/R2-style services and self-hosted MinIO where shared adapters claim support.

Lifecycle and retention

  • Retention varies by artifact/data class, plan, and legal/security purpose. Read current constants/config before changing a duration.
  • Cleanup work is bounded, paginated, idempotent, observable, and safe under concurrent scheduler instances.
  • Coordinate metadata/object deletion so retries recover from partial failure without deleting another tenant’s object or leaving permanent billable orphans.
  • Prefer mark/select/delete phases or other recoverable sequencing for large cleanup sets.
  • Infrastructure state, backups, billing records, and security/audit history are not ordinary test artifacts and never inherit short playground/run retention.
  • Changing product retention requires user documentation, entitlement/billing consideration, migration/backfill behavior, and provider lifecycle alignment.

Dashboards, reports, and exports

  • Every aggregation is tenant-scoped and uses explicit time range, time zone, status definitions, and units.
  • Avoid N+1 and unbounded scans. Use suitable composite indexes and inspect plans for high-volume queries.
  • Keep aggregate semantics aligned with raw execution/monitor state so dashboards, exports, and APIs report the same answer.
  • Export generation is permission-checked, bounded, escaped against spreadsheet/formula injection where relevant, and stored/downloaded through scoped paths.
  • Cache keys include all tenant/filter dimensions and invalidate when underlying state changes.

Audit logging

  • Audit records include actor or credential identity, organization/project scope, action, resource type/ID, timestamp, outcome, and safe metadata.
  • Log sensitive mutations and denials according to policy without recording secrets, tokens, full request payloads, provider credentials, or decrypted variables.
  • Audit failure behavior must be deliberate: critical security actions should not silently succeed without required audit evidence.
  • Audit views/exports require elevated permission, pagination, tenant scope, and appropriate retention.

Verify

  • Test cross-tenant object access, forged keys, expired URLs, unsupported types, oversized streams, missing objects, and partial cleanup failures.
  • Test cleanup idempotency/concurrency and DB/object reconciliation.
  • Compare report queries with representative raw records and inspect query plans.
  • Verify audit metadata and redaction for success, denial, and failure paths.

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/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/platform-features/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
346621af
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