Agent Skills › fastrepl/anarlog › release-api

release-api

GitHub

负责审查API契约与客户端生成代码,执行CI/CD流程以部署托管服务及数据库变更,并验证线上发布行为。涵盖版本对比、本地测试、配置检查、部署执行及健康验证,确保向后兼容与服务稳定性。

.agents/skills/release-api/SKILL.md fastrepl/anarlog

Trigger Scenarios

需要审查和发布API版本时 执行API或数据库的CI/CD部署流程时 验证线上服务发布后的正确性时

Install

npx skills add fastrepl/anarlog --skill release-api -g -y
More Options

Non-standard path

npx skills add https://github.com/fastrepl/anarlog/tree/main/.agents/skills/release-api -g -y

Use without installing

npx skills use fastrepl/anarlog@release-api

指定 Agent (Claude Code)

npx skills add fastrepl/anarlog --skill release-api -a claude-code -g -y

安装 repo 全部 skill

npx skills add fastrepl/anarlog --all -g -y

预览 repo 内 skill

npx skills add fastrepl/anarlog --list

SKILL.md

Frontmatter
{
    "name": "release-api",
    "metadata": {
        "internal": true
    },
    "description": "Review Anarlog API contracts and generated clients, deploy required hosted services and database changes, and verify live release behavior."
}

Release API

Review every release, including client-only changes. Inherit scope and session authorization from Release a New Version.

  1. Compare changed product behavior and each service's live source SHA against apps/api, apps/stripe, crates/api-cloud, affected auth/sync/proxy crates, supabase/, apps/api/openapi.gen.json, and packages/api-client/src/generated. Check auth, scopes, payloads/errors, pagination, data compatibility, and existing client behavior. Record required changes, concrete reuse reasons, or explicit deferrals before freezing the candidate.

  2. Read api_ci.yaml, api_cd.yaml, db_ci.yaml, and db_cd.yaml plus the affected component instructions. Run the full locally reproducible affected jobs and consumer checks. For contract changes, run:

    cargo test -p api gen_openapi_json
    pnpm -F @anlg/api-client openapi
    pnpm -F @anlg/api-client typecheck
    

    Use owning generators and verify repeated generation is stable. Test hosted migrations/RLS in an isolated local Supabase stack, never against production.

  3. Inspect current service choices and live configuration before deploying. Core, AI, Sync, Gateway, and billing have independent deployment decisions. The billing API and apps/stripe ship together via api_cd.yaml with service=billing. Do not treat a shared API version/tag as proof every service runs that source. Hosted Postgres has its own db_cd.yaml deployment history.

  4. Deploy required backward-compatible hosted changes before dependent desktop or mobile clients. Select the exact approved environment, service and merged source. Use gh workflow run api_cd.yaml --ref main -f service=<service> and gh workflow run db_cd.yaml --ref main as appropriate, after reading their current inputs. Verify each run's headSha; never ship the combined GitButler workspace. Include every dependency in filtered Docker build contexts.

  5. Follow deployments to terminal success. Confirm actual serving source/digest, version and role-specific readiness, then exercise affected authenticated behavior with an authorized test account. /health, an unauthenticated 401, or one healthy role does not prove other roles or operations work. Coordinate hosted protocol checks with Release MCP.

  6. For schema changes, record the selected hosted project, applied migrations, source/run and compatibility checks. Keep shipped SQLite migrations append-only, desktop/mobile schemas compatible, and older clients supported. Follow current drain, migration, continuity, and recovery requirements; successful health checks alone do not establish zero downtime.

Return generated-contract decisions, candidate CI, each service/database's deployed revision and run URL, live evidence, or reuse reason and outstanding work. Reuse a live deployment only when its source includes the required changes; no artificial version bumps or no-op redeploys. Website and Mintlify publication belong to Release Docs, not the API deploy.

Version History

  • 088f348 Current 2026-09-23 08:29

Same Skill Collection

.agents/skills/add-plugin/SKILL.md
.agents/skills/anarlog-workflow/SKILL.md
.agents/skills/axum-test-transport/SKILL.md
.agents/skills/create-prs/SKILL.md
.agents/skills/fix-prs/SKILL.md
.agents/skills/fix-ready-prs/SKILL.md
.agents/skills/migrate-to-sqlite/SKILL.md
.agents/skills/new-changelog/SKILL.md
.agents/skills/no-use-effect/SKILL.md
.agents/skills/product-update-newsletter/SKILL.md
.agents/skills/qa-cli-mcp-api/SKILL.md
.agents/skills/qa-critical-ux/SKILL.md
.agents/skills/reactive-sqlite-ui/SKILL.md
.agents/skills/release-cli/SKILL.md
.agents/skills/release-docs/SKILL.md
.agents/skills/release-mcp/SKILL.md
.agents/skills/release-new-version/SKILL.md
.agents/skills/release-telemetry/SKILL.md
.agents/skills/sqlite-schema-design/SKILL.md
.agents/skills/sweep-workspace/SKILL.md
.agents/skills/testing/SKILL.md
.agents/skills/update-prs/SKILL.md
.claude/skills/fix-ready-prs/SKILL.md
.claude/skills/product-update-newsletter/SKILL.md
.claude/skills/qa-critical-ux/SKILL.md
.claude/skills/release-new-version/SKILL.md
.cursor/skills/new-changelog/SKILL.md
.cursor/skills/qa-cli-mcp-api/SKILL.md
.cursor/skills/qa-critical-ux/SKILL.md
.cursor/skills/release-new-version/SKILL.md
agent-plugins/anarlog/skills/anarlog/SKILL.md
skills/anarlog/SKILL.md
.agents/skills/gitbutler/SKILL.md

Metadata

Files
0
Version
2660f77
Hash
49748c94
Indexed
2026-09-23 08:29

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-27 05:37
浙ICP备14020137号-1