[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ER4A08G4CPT443J7XSHDJQ":3,"skill-same:01M6ER4A08G4CPT443J7XSHDJQ":68},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":13,"repositoryHtmlUrl":51,"repositoryHomepageUrl":52,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":54,"install":55,"resources":67},"01M6ER4A08G4CPT443J7XSHDJQ","release-check",null,"Analyzes branch diff to generate deploy checklists — env vars, migrations, new services, dependencies, schema changes, breaking changes. Works across any tech stack. Manual via \u002Frelease-check [source] [target].","cj-ways\u002Farcana","cj-ways","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F268418145?v=4","01M6ER2722FXTDPCH3119PJ5T3","01M6ER2773VFWAC3D21KGP6N7Q",0,"MIT","https:\u002F\u002Fgithub.com\u002Fcj-ways\u002Farcana\u002Fblob\u002Fmain\u002Fskills\u002Frelease-check\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"release","check","release check","read","tech","via","env","across","dependencies","migrations","schema","diff","services","generate","branch","grep","env vars","stack","Bash","execution","2026-11-10 10:12:30",false,"---\nname: release-check\ndescription: 'Analyzes branch diff to generate deploy checklists — env vars, migrations, new services, dependencies, schema changes, breaking changes. Works across any tech stack. Manual via \u002Frelease-check [source] [target].'\nargument-hint: '[source-branch] [target-branch]'\nallowed-tools: Bash, Read, Grep, Glob\neffort: medium\nphase: release\nfeedback-profile: execution\ncatalog-order: 100\ndisable-model-invocation: true\n---\n\n# Release Check\n\nAnalyzes the diff between two branches and produces actionable pre-release and post-release checklists. Auto-detects the project's tech stack and scans for env variables, migrations, DB schema changes, new services, dependency changes, API schema changes, and infrastructure requirements.\n\n## Arguments\n\n```\n\u002Frelease-check [source-branch] [target-branch]\n```\n\n- `source-branch`: Branch being released (default: auto-detect default branch via `git symbolic-ref refs\u002Fremotes\u002Forigin\u002FHEAD`, or fall back to `dev`\u002F`develop`\u002F`main`)\n- `target-branch`: Branch being released into (default: `main` or `master`, whichever exists)\n\nIf `$ARGUMENTS` is provided, parse as `\u003Csource> \u003Ctarget>`. If only one argument, treat as source with `main`\u002F`master` as target.\n\n## Gotchas\n\n1. **Missing env vars referenced indirectly.** Not all env vars appear as literal `process.env.VAR_NAME`. Look for spread operators (`...process.env`), dynamic key access (`process.env[key]`), config wrappers that read env vars internally (e.g., `config.get('DATABASE_URL')` where the config module reads from `process.env`), and `.env` file parsing libraries. Grep for the env var pattern AND read config\u002Fsettings modules to catch indirect references.\n2. **Not detecting renamed env vars.** If an old env var is removed and a new one is added (e.g., `DB_URL` replaced by `DATABASE_URL`), this is a migration that requires coordination: the old var must stay during rollout, the new var must be set, and the old one removed after full deploy. Flag renamed env vars explicitly.\n3. **Database migrations that need to run BEFORE vs AFTER deployment.** Additive migrations (new tables, new nullable columns) are safe to run before deploy. Destructive migrations (drop column, rename table, change type) must be coordinated: deploy code that handles both old and new schema first, then run migration, then remove old-schema code. Flag migration timing explicitly.\n4. **Ignoring feature flags that gate the new code.** If new code is behind a feature flag that defaults to OFF, the deployment is safe even without running migrations or setting new env vars immediately. Check for feature flag gates and note when they make a deploy item lower priority than it appears.\n\n## Steps\n\n### Step 1: Validate branches, detect stack, and collect diff\n\n1. Fetch latest refs: `git fetch origin`\n2. Verify both branches exist: `git rev-parse --verify origin\u002F\u003Cbranch>`\n3. **Detect project stack** by checking for key files in the repo root:\n   - `package.json` → Node.js (then check for NestJS, Next.js, Express, etc.)\n   - `go.mod` → Go\n   - `requirements.txt` \u002F `pyproject.toml` \u002F `setup.py` → Python\n   - `Gemfile` → Ruby\u002FRails\n   - `Cargo.toml` → Rust\n   - `pom.xml` \u002F `build.gradle` → Java\u002FKotlin\n   - `composer.json` → PHP\n   - Store detected stack for use in subsequent steps\n4. Get commit range: `git log --oneline origin\u002F\u003Ctarget>..origin\u002F\u003Csource>`\n5. Count commits and list affected authors: `git log --format='%an' origin\u002F\u003Ctarget>..origin\u002F\u003Csource> | sort -u`\n6. Get full file change summary: `git diff --stat origin\u002F\u003Ctarget>...origin\u002F\u003Csource>`\n7. Get changed files list: `git diff --name-only origin\u002F\u003Ctarget>...origin\u002F\u003Csource>`\n\nStore the changed files list — all subsequent detection steps filter from this list.\n\n### Step 2: Detect environment variable changes\n\n**Goal:** Find new environment variable references that don't exist on the target branch.\n\n**Detection patterns by stack:**\n\n| Stack | Pattern |\n|-------|---------|\n| Node.js | `process.env.VAR_NAME`, `process.env['VAR_NAME']` |\n| Go | `os.Getenv(\"VAR_NAME\")`, `os.LookupEnv(\"VAR_NAME\")` |\n| Python | `os.environ`, `os.getenv`, `config(\"VAR_NAME\")`, Django\u002FFlask settings |\n| Ruby | `ENV[\"VAR_NAME\"]`, `ENV.fetch(\"VAR_NAME\")` |\n| Rust | `std::env::var(\"VAR_NAME\")`, `env::var(\"VAR_NAME\")` |\n| Any | `.env` file diffs, `.env.example` diffs, `docker-compose*.yml` env sections |\n\n**Process:**\n1. From changed files, grep for env var patterns (matching detected stack) in the source branch versions\n2. Compare against the same grep on the target branch\n3. Net-new env vars = present in source but absent in target\n4. Also check for removed env vars (present in target, absent in source)\n5. Check config files (`.env.example`, `docker-compose*.yml`, config modules) if changed\n\n**Output per finding:**\n- Variable name\n- File(s) where it's used\n- Whether it has a default\u002Ffallback value\n- Whether it's required at boot (used in startup\u002Finit code or config validation)\n\n### Step 3: Detect database changes\n\n**3a. Migrations — detect by framework:**\n\n| Framework | Migration path pattern |\n|-----------|----------------------|\n| TypeORM | `**\u002Fmigrations\u002F*.ts` |\n| Drizzle | `**\u002Fdrizzle\u002F*.sql`, `drizzle\u002F` directory |\n| Prisma | `prisma\u002Fmigrations\u002F` |\n| Atlas | `**\u002Fmigrations\u002F*.sql`, `atlas.hcl` |\n| Alembic | `alembic\u002Fversions\u002F*.py` |\n| Rails | `db\u002Fmigrate\u002F*.rb` |\n| Knex | `**\u002Fmigrations\u002F*.js`, `**\u002Fmigrations\u002F*.ts` |\n| Django | `**\u002Fmigrations\u002F*.py` |\n| Sequelize | `**\u002Fmigrations\u002F*.js` |\n| Go (golang-migrate) | `**\u002Fmigrations\u002F*.sql` |\n| Flyway | `**\u002Fdb\u002Fmigration\u002F*.sql` |\n| Any | Files matching `*migration*` in changed files list |\n\nFor each new migration file found:\n- Read the file to extract: tables created\u002Faltered\u002Fdropped, columns added\u002Fremoved, indexes, data migrations\n- Determine if migration is reversible (has a `down`\u002F`revert` method or rollback SQL)\n\n**3b. Schema\u002Fmodel changes:**\n1. Filter changed files for entity\u002Fmodel\u002Fschema patterns:\n   - `*.entity.ts`, `*.model.ts`, `*.model.py`, `*.rb` (ActiveRecord models), `schema.prisma`, `*.go` (struct definitions with DB tags)\n2. For each changed schema file, diff to identify: new fields, type changes, index changes, nullable changes, default value changes\n\n**3c. Potential migration gaps:**\n1. If model\u002Fentity files changed but NO new migration file exists, flag as warning\n2. If migration references tables not matching any model change, flag for review\n\n### Step 4: Detect new services and entry points\n\n1. Look for new entry point files in the changed files list:\n   - `**\u002Fmain.ts`, `**\u002Fmain.go`, `**\u002Fmain.py`, `**\u002Fcmd\u002F*\u002Fmain.go`\n   - New `Dockerfile*` files\n   - New directories with their own `package.json` (monorepo packages)\n   - New serverless function definitions\n2. For new services, identify:\n   - Service type (API, worker, cron, webhook handler)\n   - Port or trigger configuration needed\n   - Required infrastructure dependencies\n3. Check if CI\u002FCD configs were modified with new build\u002Fdeploy targets\n4. For webhook-type services, check if external callback URL configuration is needed\n\n### Step 5: Detect dependency changes\n\n**Detection by package manager:**\n\n| File | Package Manager |\n|------|----------------|\n| `package.json` | npm\u002Fyarn\u002Fpnpm |\n| `go.mod` | Go modules |\n| `requirements.txt` \u002F `pyproject.toml` | pip\u002Fpoetry |\n| `Gemfile` | bundler |\n| `Cargo.toml` | cargo |\n| `pom.xml` \u002F `build.gradle` | Maven\u002FGradle |\n| `composer.json` | Composer |\n\n**Process:**\n1. Diff the relevant dependency file for:\n   - New dependencies added (with versions)\n   - Dependencies removed\n   - Version bumps (major vs minor vs patch)\n   - New dev dependencies\n2. If lockfile changed, note it (`yarn.lock`, `package-lock.json`, `go.sum`, `Gemfile.lock`, `Cargo.lock`, `poetry.lock`, etc.)\n3. Flag any major version bumps as requiring extra attention\n4. Flag any new native\u002Fbinary dependencies (may need Docker image rebuild or system packages)\n\n### Step 6: Detect API schema changes\n\n**Detection by schema type:**\n\n| Schema Type | File Patterns |\n|-------------|--------------|\n| GraphQL | `*.gql`, `*.graphql`, `schema.gql` |\n| Protobuf | `*.proto` |\n| OpenAPI\u002FSwagger | `openapi.yaml`, `openapi.json`, `swagger.yaml`, `swagger.json`, `**\u002Fapi-spec.*` |\n| gRPC | `*.proto` + service definitions |\n| tRPC | `*.router.ts`, `*.procedure.ts` |\n\n**Process:**\n1. Check if any schema files were modified in the changed files list\n2. If so, summarize:\n   - New endpoints\u002Fqueries\u002Fmutations\u002FRPCs added\n   - Fields or endpoints removed (BREAKING for clients)\n   - Type changes (BREAKING for clients)\n   - New input types \u002F enums registered\n3. Flag any removals or type changes as breaking changes requiring client coordination\n\n### Step 7: Detect infrastructure and config changes\n\n1. Check for changes in:\n   - `Dockerfile*`, `docker-compose*.yml`\n   - CI\u002FCD files: `.github\u002Fworkflows\u002F`, `.gitlab-ci.yml`, `Jenkinsfile`, `.circleci\u002F`, `bitbucket-pipelines.yml`, `.travis.yml`\n   - Build configs: `tsconfig*.json`, `webpack.config.*`, `vite.config.*`, `Makefile`, `justfile`\n   - Deployment configs: `k8s\u002F`, `helm\u002F`, `terraform\u002F`, `ansible\u002F`, `serverless.yml`, `fly.toml`, `render.yaml`, `vercel.json`, `netlify.toml`\n   - ORM\u002FDB configs: `ormconfig.*`, `prisma\u002Fschema.prisma`, `drizzle.config.*`, `knexfile.*`, `alembic.ini`\n2. Check for new external service integrations (new HTTP clients, SDK imports, third-party API calls)\n3. Check for new message queue topics\u002Fsubjects\u002Fchannels (Kafka, RabbitMQ, NATS, SQS, Redis pub\u002Fsub, BullMQ)\n4. Check for new cron\u002Fscheduler definitions\n\n### Step 8: Detect feature flags and toggles\n\n1. Grep changed files for common feature flag patterns:\n   - `isFeatureEnabled`, `featureFlag`, `FEATURE_`, `ENABLE_`, `FF_`\n   - LaunchDarkly, Unleash, Flagsmith, or other feature flag SDK usage\n   - Settings\u002Fconfig table references for runtime toggles\n   - Conditional logic gated on environment or config values\n2. List any new feature flags that need to be configured\n\n### Step 9: Assess risk areas\n\nFor each major area of change, classify:\n- **Critical** — Must be done before deploy or service will break (migrations, required env vars, new service ports, breaking schema changes)\n- **Important** — Should be done around deploy time (cache invalidation, cron schedule updates, webhook URL config, dependency installs)\n- **Post-deploy** — Can be done after successful deploy (monitoring setup, cleanup, documentation, non-breaking flag toggles)\n\n## Checklist Generation\n\nBased on all findings above, generate two checklists:\n\n### Pre-Release Checklist Template\n\n```\n## Pre-Release Checklist\n**Release:** origin\u002F\u003Csource> -> origin\u002F\u003Ctarget>\n**Date:** YYYY-MM-DD\n**Commits:** N commits by [authors]\n\n### Environment Variables\n- [ ] `VAR_NAME` — Add to [environments] — Used in [files] — [Required at boot \u002F Has fallback]\n  ...\n\n### Database\n- [ ] Review migration: `MigrationName` — [Tables affected] — [Reversible: Yes\u002FNo]\n- [ ] Backup database before migration (if destructive changes detected)\n- [ ] Run migrations: `\u003Cframework-specific command>`\n  ...\n\n### Dependencies\n- [ ] Run `\u003Cinstall-command>` on deploy servers\n- [ ] [Major bump] Review `package-name` vX->vY changelog for breaking changes\n  ...\n\n### New Services \u002F Entry Points\n- [ ] Configure port \u002F trigger for `\u003Cservice-name>`\n- [ ] Add to deployment pipeline \u002F process manager\n- [ ] Configure health check endpoint\n- [ ] [Webhook] Register callback URL with external provider\n  ...\n\n### API Schema\n- [ ] [BREAKING] Removed field\u002Fendpoint `\u003Cname>` — Coordinate with clients\n- [ ] Verify client compatibility with schema changes\n  ...\n\n### Infrastructure\n- [ ] [CI\u002FCD change] Review pipeline modifications\n- [ ] [Docker change] Rebuild and push images\n- [ ] [New queue\u002Ftopic] Create and configure: `\u003Cname>`\n- [ ] [Deployment config] Review and apply changes\n  ...\n\n### Feature Flags\n- [ ] Set `FLAG_NAME` = [value] in [environment]\n  ...\n\n### General\n- [ ] Code review completed\n- [ ] All CI checks passing on source branch\n- [ ] Test critical flows on staging\n- [ ] Notify team of deployment window\n```\n\n### Post-Release Checklist Template\n\n```\n## Post-Release Checklist\n\n### Verification\n- [ ] Health check endpoints responding for all services\n- [ ] Verify new migrations applied successfully\n- [ ] Smoke test critical flows: [list based on changed areas]\n  ...\n\n### Monitoring\n- [ ] Check error tracking (Sentry, Datadog, etc.) for new errors (15 min window)\n- [ ] Check logs for error spikes\n- [ ] Verify scheduled jobs executing on schedule (if new\u002Fmodified)\n- [ ] Monitor queue processing rates (if new\u002Fmodified workers)\n  ...\n\n### Cleanup\n- [ ] Remove old feature flags (if any were sunset)\n- [ ] Update API documentation (if schema changed)\n- [ ] Notify stakeholders of completed release\n- [ ] Tag release: `git tag vX.Y.Z`\n  ...\n\n### Rollback Plan\n- [ ] Migration reversible: `\u003Crevert-command>` [N times]\n- [ ] Previous container image tagged and available\n- [ ] Environment variables backward-compatible: [Yes\u002FNo — details]\n```\n\n## Execution Strategy\n\nRun Steps 2-8 in parallel using Task agents for speed:\n- **Agent 1**: Env vars + feature flags (Steps 2, 8)\n- **Agent 2**: Database changes (Step 3)\n- **Agent 3**: New services + dependencies + infrastructure (Steps 4, 5, 7)\n- **Agent 4**: API schema changes (Step 6)\n\nCompile all findings in main context, then run Step 9 (risk assessment) and generate checklists.\n\n### Step 10: Risk Prioritization\n\nAfter compiling all findings, assign a **Risk Priority** to every checklist item:\n\n| Priority | Criteria | Examples |\n|----------|----------|----------|\n| **CRITICAL** | Deploy will break or cause data loss without this | Breaking API changes, DB migrations with destructive ops, new required env vars with no fallback, new service ports not configured |\n| **HIGH** | Deploy will partially fail or degrade without this | New services needing health checks, schema changes affecting queries, major dependency version bumps |\n| **MEDIUM** | Deploy succeeds but with debt or minor issues | Dependency updates, config file changes, non-breaking schema additions, CI\u002FCD tweaks |\n| **LOW** | Can be done anytime after deploy | Documentation updates, minor refactors, cleanup of old feature flags, non-critical monitoring |\n\nTag each checklist item with its priority: `[CRITICAL]`, `[HIGH]`, `[MEDIUM]`, `[LOW]`.\nSort checklists by priority (CRITICAL first, LOW last) so the most important items are at the top.\n\n### Step 11: User Confirmation Before Output\n\nBefore outputting the final checklists, present a summary for review:\n\n```\n## Deploy Prep Summary\nFound N total checklist items:\n- CRITICAL: X items (must be done before deploy)\n- HIGH: Y items (should be done around deploy time)\n- MEDIUM: Z items (can be done shortly after)\n- LOW: W items (can be done anytime)\n\nShall I generate the full checklists? Any categories you want me to focus on or skip?\n```\n\nWait for user confirmation before generating the detailed Pre-Release and Post-Release checklists. This avoids overwhelming the user with a 200-line checklist when they may only care about CRITICAL items.\n\n## Rules\n\n- NEVER modify any files — this is a read-only analysis skill\n- NEVER run migrations or any destructive commands\n- ALWAYS fetch latest before comparing (`git fetch origin`)\n- Use these tools only: Bash (git commands, grep, file reads), Read, Glob, Grep, Task (for parallelizing)\n- Skip build output directories (`node_modules\u002F`, `dist\u002F`, `build\u002F`, `target\u002F`, `__pycache__\u002F`, `.git\u002F`, `vendor\u002F`, `coverage\u002F`, `*.min.js`, `*.bundle.js`)\n- Skip auto-generated schema files when analyzing code logic, but DO read them for API schema change detection\n- If diff is extremely large (500+ files), ask user whether to run full analysis or focus on specific categories\n- ALWAYS show commit count and list of authors at the top of the report\n\n## Output\n\nPresent the report in this structure:\n\n```\n## Release Analysis Report\n**Source:** origin\u002F\u003Csource> (commit SHA)\n**Target:** origin\u002F\u003Ctarget> (commit SHA)\n**Date:** YYYY-MM-DD\n**Commits:** N commits\n**Authors:** [list]\n**Files changed:** N\n**Detected stack:** [language\u002Fframework]\n\n### Risk Summary\n| Category | Findings | Risk Level |\n|----------|----------|------------|\n| Env Vars | N new, M removed | Critical\u002FNone |\n| Migrations | N new | Critical\u002FNone |\n| Schema\u002FModel Changes | N files | Important\u002FNone |\n| New Services | N services | Critical\u002FNone |\n| Dependencies | N added, M bumped | Important\u002FNone |\n| API Breaking Changes | N breaking changes | Critical\u002FNone |\n| Infrastructure | N changes | Important\u002FNone |\n| Feature Flags | N new flags | Important\u002FNone |\n\n### Detailed Findings\n[Expandable sections per category with full details]\n\n### Pre-Release Checklist\n[Generated checklist with all items as empty checkboxes]\n\n### Post-Release Checklist\n[Generated checklist with all items as empty checkboxes]\n```\n\nDo NOT commit or modify anything. Present the full report for user review.\n\n### Cross-Skill Suggestions (append when relevant)\n- If CRITICAL migration or schema changes are found, add: \"Consider running `\u002Fdeep-review` on the migration files before deploying.\"\n- If the release includes significant new features, add: \"Consider running `\u002Ffeature-audit` to verify the feature is production-ready before release.\"\n","# Release Check\n\nAnalyzes the diff between two branches and produces actionable pre-release and post-release checklists. Auto-detects the project's tech stack and scans for env variables, migrations, DB schema changes, new services, dependency changes, API schema changes, and infrastructure requirements.\n\n## Arguments\n\n```\n\u002Frelease-check [source-branch] [target-branch]\n```\n\n- `source-branch`: Branch being released (default: auto-detect default branch via `git symbolic-ref refs\u002Fremotes\u002Forigin\u002FHEAD`, or fall back to `dev`\u002F`develop`\u002F`main`)\n- `target-branch`: Branch being released into (default: `main` or `master`, whichever exists)\n\nIf `$ARGUMENTS` is provided, parse as `\u003Csource> \u003Ctarget>`. If only one argument, treat as source with `main`\u002F`master` as target.\n\n## Gotchas\n\n1. **Missing env vars referenced indirectly.** Not all env vars appear as literal `process.env.VAR_NAME`. Look for spread operators (`...process.env`), dynamic key access (`process.env[key]`), config wrappers that read env vars internally (e.g., `config.get('DATABASE_URL')` where the config module reads from `process.env`), and `.env` file parsing libraries. Grep for the env var pattern AND read config\u002Fsettings modules to catch indirect references.\n2. **Not detecting renamed env vars.** If an old env var is removed and a new one is added (e.g., `DB_URL` replaced by `DATABASE_URL`), this is a migration that requires coordination: the old var must stay during rollout, the new var must be set, and the old one removed after full deploy. Flag renamed env vars explicitly.\n3. **Database migrations that need to run BEFORE vs AFTER deployment.** Additive migrations (new tables, new nullable columns) are safe to run before deploy. Destructive migrations (drop column, rename table, change type) must be coordinated: deploy code that handles both old and new schema first, then run migration, then remove old-schema code. Flag migration timing explicitly.\n4. **Ignoring feature flags that gate the new code.** If new code is behind a feature flag that defaults to OFF, the deployment is safe even without running migrations or setting new env vars immediately. Check for feature flag gates and note when they make a deploy item lower priority than it appears.\n\n## Steps\n\n### Step 1: Validate branches, detect stack, and collect diff\n\n1. Fetch latest refs: `git fetch origin`\n2. Verify both branches exist: `git rev-parse --verify origin\u002F\u003Cbranch>`\n3. **Detect project stack** by checking for key files in the repo root:\n   - `package.json` → Node.js (then check for NestJS, Next.js, Express, etc.)\n   - `go.mod` → Go\n   - `requirements.txt` \u002F `pyproject.toml` \u002F `setup.py` → Python\n   - `Gemfile` → Ruby\u002FRails\n   - `Cargo.toml` → Rust\n   - `pom.xml` \u002F `build.gradle` → Java\u002FKotlin\n   - `composer.json` → PHP\n   - Store detected stack for use in subsequent steps\n4. Get commit range: `git log --oneline origin\u002F\u003Ctarget>..origin\u002F\u003Csource>`\n5. Count commits and list affected authors: `git log --format='%an' origin\u002F\u003Ctarget>..origin\u002F\u003Csource> | sort -u`\n6. Get full file change summary: `git diff --stat origin\u002F\u003Ctarget>...origin\u002F\u003Csource>`\n7. Get changed files list: `git diff --name-only origin\u002F\u003Ctarget>...origin\u002F\u003Csource>`\n\nStore the changed files list — all subsequent detection steps filter from this list.\n\n### Step 2: Detect environment variable changes\n\n**Goal:** Find new environment variable references that don't exist on the target branch.\n\n**Detection patterns by stack:**\n\n| Stack | Pattern |\n|-------|---------|\n| Node.js | `process.env.VAR_NAME`, `process.env['VAR_NAME']` |\n| Go | `os.Getenv(\"VAR_NAME\")`, `os.LookupEnv(\"VAR_NAME\")` |\n| Python | `os.environ`, `os.getenv`, `config(\"VAR_NAME\")`, Django\u002FFlask settings |\n| Ruby | `ENV[\"VAR_NAME\"]`, `ENV.fetch(\"VAR_NAME\")` |\n| Rust | `std::env::var(\"VAR_NAME\")`, `env::var(\"VAR_NAME\")` |\n| Any | `.env` file diffs, `.env.example` diffs, `docker-compose*.yml` env sections |\n\n**Process:**\n1. From changed files, grep for env var patterns (matching detected stack) in the source branch versions\n2. Compare against the same grep on the target branch\n3. Net-new env vars = present in source but absent in target\n4. Also check for removed env vars (present in target, absent in source)\n5. Check config files (`.env.example`, `docker-compose*.yml`, config modules) if changed\n\n**Output per finding:**\n- Variable name\n- File(s) where it's used\n- Whether it has a default\u002Ffallback value\n- Whether it's required at boot (used in startup\u002Finit code or config validation)\n\n### Step 3: Detect database changes\n\n**3a. Migrations — detect by framework:**\n\n| Framework | Migration path pattern |\n|-----------|----------------------|\n| TypeORM | `**\u002Fmigrations\u002F*.ts` |\n| Drizzle | `**\u002Fdrizzle\u002F*.sql`, `drizzle\u002F` directory |\n| Prisma | `prisma\u002Fmigrations\u002F` |\n| Atlas | `**\u002Fmigrations\u002F*.sql`, `atlas.hcl` |\n| Alembic | `alembic\u002Fversions\u002F*.py` |\n| Rails | `db\u002Fmigrate\u002F*.rb` |\n| Knex | `**\u002Fmigrations\u002F*.js`, `**\u002Fmigrations\u002F*.ts` |\n| Django | `**\u002Fmigrations\u002F*.py` |\n| Sequelize | `**\u002Fmigrations\u002F*.js` |\n| Go (golang-migrate) | `**\u002Fmigrations\u002F*.sql` |\n| Flyway | `**\u002Fdb\u002Fmigration\u002F*.sql` |\n| Any | Files matching `*migration*` in changed files list |\n\nFor each new migration file found:\n- Read the file to extract: tables created\u002Faltered\u002Fdropped, columns added\u002Fremoved, indexes, data migrations\n- Determine if migration is reversible (has a `down`\u002F`revert` method or rollback SQL)\n\n**3b. Schema\u002Fmodel changes:**\n1. Filter changed files for entity\u002Fmodel\u002Fschema patterns:\n   - `*.entity.ts`, `*.model.ts`, `*.model.py`, `*.rb` (ActiveRecord models), `schema.prisma`, `*.go` (struct definitions with DB tags)\n2. For each changed schema file, diff to identify: new fields, type changes, index changes, nullable changes, default value changes\n\n**3c. Potential migration gaps:**\n1. If model\u002Fentity files changed but NO new migration file exists, flag as warning\n2. If migration references tables not matching any model change, flag for review\n\n### Step 4: Detect new services and entry points\n\n1. Look for new entry point files in the changed files list:\n   - `**\u002Fmain.ts`, `**\u002Fmain.go`, `**\u002Fmain.py`, `**\u002Fcmd\u002F*\u002Fmain.go`\n   - New `Dockerfile*` files\n   - New directories with their own `package.json` (monorepo packages)\n   - New serverless function definitions\n2. For new services, identify:\n   - Service type (API, worker, cron, webhook handler)\n   - Port or trigger configuration needed\n   - Required infrastructure dependencies\n3. Check if CI\u002FCD configs were modified with new build\u002Fdeploy targets\n4. For webhook-type services, check if external callback URL configuration is needed\n\n### Step 5: Detect dependency changes\n\n**Detection by package manager:**\n\n| File | Package Manager |\n|------|----------------|\n| `package.json` | npm\u002Fyarn\u002Fpnpm |\n| `go.mod` | Go modules |\n| `requirements.txt` \u002F `pyproject.toml` | pip\u002Fpoetry |\n| `Gemfile` | bundler |\n| `Cargo.toml` | cargo |\n| `pom.xml` \u002F `build.gradle` | Maven\u002FGradle |\n| `composer.json` | Composer |\n\n**Process:**\n1. Diff the relevant dependency file for:\n   - New dependencies added (with versions)\n   - Dependencies removed\n   - Version bumps (major vs minor vs patch)\n   - New dev dependencies\n2. If lockfile changed, note it (`yarn.lock`, `package-lock.json`, `go.sum`, `Gemfile.lock`, `Cargo.lock`, `poetry.lock`, etc.)\n3. Flag any major version bumps as requiring extra attention\n4. Flag any new native\u002Fbinary dependencies (may need Docker image rebuild or system packages)\n\n### Step 6: Detect API schema changes\n\n**Detection by schema type:**\n\n| Schema Type | File Patterns |\n|-------------|--------------|\n| GraphQL | `*.gql`, `*.graphql`, `schema.gql` |\n| Protobuf | `*.proto` |\n| OpenAPI\u002FSwagger | `openapi.yaml`, `openapi.json`, `swagger.yaml`, `swagger.json`, `**\u002Fapi-spec.*` |\n| gRPC | `*.proto` + service definitions |\n| tRPC | `*.router.ts`, `*.procedure.ts` |\n\n**Process:**\n1. Check if any schema files were modified in the changed files list\n2. If so, summarize:\n   - New endpoints\u002Fqueries\u002Fmutations\u002FRPCs added\n   - Fields or endpoints removed (BREAKING for clients)\n   - Type changes (BREAKING for clients)\n   - New input types \u002F enums registered\n3. Flag any removals or type changes as breaking changes requiring client coordination\n\n### Step 7: Detect infrastructure and config changes\n\n1. Check for changes in:\n   - `Dockerfile*`, `docker-compose*.yml`\n   - CI\u002FCD files: `.github\u002Fworkflows\u002F`, `.gitlab-ci.yml`, `Jenkinsfile`, `.circleci\u002F`, `bitbucket-pipelines.yml`, `.travis.yml`\n   - Build configs: `tsconfig*.json`, `webpack.config.*`, `vite.config.*`, `Makefile`, `justfile`\n   - Deployment configs: `k8s\u002F`, `helm\u002F`, `terraform\u002F`, `ansible\u002F`, `serverless.yml`, `fly.toml`, `render.yaml`, `vercel.json`, `netlify.toml`\n   - ORM\u002FDB configs: `ormconfig.*`, `prisma\u002Fschema.prisma`, `drizzle.config.*`, `knexfile.*`, `alembic.ini`\n2. Check for new external service integrations (new HTTP clients, SDK imports, third-party API calls)\n3. Check for new message queue topics\u002Fsubjects\u002Fchannels (Kafka, RabbitMQ, NATS, SQS, Redis pub\u002Fsub, BullMQ)\n4. Check for new cron\u002Fscheduler definitions\n\n### Step 8: Detect feature flags and toggles\n\n1. Grep changed files for common feature flag patterns:\n   - `isFeatureEnabled`, `featureFlag`, `FEATURE_`, `ENABLE_`, `FF_`\n   - LaunchDarkly, Unleash, Flagsmith, or other feature flag SDK usage\n   - Settings\u002Fconfig table references for runtime toggles\n   - Conditional logic gated on environment or config values\n2. List any new feature flags that need to be configured\n\n### Step 9: Assess risk areas\n\nFor each major area of change, classify:\n- **Critical** — Must be done before deploy or service will break (migrations, required env vars, new service ports, breaking schema changes)\n- **Important** — Should be done around deploy time (cache invalidation, cron schedule updates, webhook URL config, dependency installs)\n- **Post-deploy** — Can be done after successful deploy (monitoring setup, cleanup, documentation, non-breaking flag toggles)\n\n## Checklist Generation\n\nBased on all findings above, generate two checklists:\n\n### Pre-Release Checklist Template\n\n```\n## Pre-Release Checklist\n**Release:** origin\u002F\u003Csource> -> origin\u002F\u003Ctarget>\n**Date:** YYYY-MM-DD\n**Commits:** N commits by [authors]\n\n### Environment Variables\n- [ ] `VAR_NAME` — Add to [environments] — Used in [files] — [Required at boot \u002F Has fallback]\n  ...\n\n### Database\n- [ ] Review migration: `MigrationName` — [Tables affected] — [Reversible: Yes\u002FNo]\n- [ ] Backup database before migration (if destructive changes detected)\n- [ ] Run migrations: `\u003Cframework-specific command>`\n  ...\n\n### Dependencies\n- [ ] Run `\u003Cinstall-command>` on deploy servers\n- [ ] [Major bump] Review `package-name` vX->vY changelog for breaking changes\n  ...\n\n### New Services \u002F Entry Points\n- [ ] Configure port \u002F trigger for `\u003Cservice-name>`\n- [ ] Add to deployment pipeline \u002F process manager\n- [ ] Configure health check endpoint\n- [ ] [Webhook] Register callback URL with external provider\n  ...\n\n### API Schema\n- [ ] [BREAKING] Removed field\u002Fendpoint `\u003Cname>` — Coordinate with clients\n- [ ] Verify client compatibility with schema changes\n  ...\n\n### Infrastructure\n- [ ] [CI\u002FCD change] Review pipeline modifications\n- [ ] [Docker change] Rebuild and push images\n- [ ] [New queue\u002Ftopic] Create and configure: `\u003Cname>`\n- [ ] [Deployment config] Review and apply changes\n  ...\n\n### Feature Flags\n- [ ] Set `FLAG_NAME` = [value] in [environment]\n  ...\n\n### General\n- [ ] Code review completed\n- [ ] All CI checks passing on source branch\n- [ ] Test critical flows on staging\n- [ ] Notify team of deployment window\n```\n\n### Post-Release Checklist Template\n\n```\n## Post-Release Checklist\n\n### Verification\n- [ ] Health check endpoints responding for all services\n- [ ] Verify new migrations applied successfully\n- [ ] Smoke test critical flows: [list based on changed areas]\n  ...\n\n### Monitoring\n- [ ] Check error tracking (Sentry, Datadog, etc.) for new errors (15 min window)\n- [ ] Check logs for error spikes\n- [ ] Verify scheduled jobs executing on schedule (if new\u002Fmodified)\n- [ ] Monitor queue processing rates (if new\u002Fmodified workers)\n  ...\n\n### Cleanup\n- [ ] Remove old feature flags (if any were sunset)\n- [ ] Update API documentation (if schema changed)\n- [ ] Notify stakeholders of completed release\n- [ ] Tag release: `git tag vX.Y.Z`\n  ...\n\n### Rollback Plan\n- [ ] Migration reversible: `\u003Crevert-command>` [N times]\n- [ ] Previous container image tagged and available\n- [ ] Environment variables backward-compatible: [Yes\u002FNo — details]\n```\n\n## Execution Strategy\n\nRun Steps 2-8 in parallel using Task agents for speed:\n- **Agent 1**: Env vars + feature flags (Steps 2, 8)\n- **Agent 2**: Database changes (Step 3)\n- **Agent 3**: New services + dependencies + infrastructure (Steps 4, 5, 7)\n- **Agent 4**: API schema changes (Step 6)\n\nCompile all findings in main context, then run Step 9 (risk assessment) and generate checklists.\n\n### Step 10: Risk Prioritization\n\nAfter compiling all findings, assign a **Risk Priority** to every checklist item:\n\n| Priority | Criteria | Examples |\n|----------|----------|----------|\n| **CRITICAL** | Deploy will break or cause data loss without this | Breaking API changes, DB migrations with destructive ops, new required env vars with no fallback, new service ports not configured |\n| **HIGH** | Deploy will partially fail or degrade without this | New services needing health checks, schema changes affecting queries, major dependency version bumps |\n| **MEDIUM** | Deploy succeeds but with debt or minor issues | Dependency updates, config file changes, non-breaking schema additions, CI\u002FCD tweaks |\n| **LOW** | Can be done anytime after deploy | Documentation updates, minor refactors, cleanup of old feature flags, non-critical monitoring |\n\nTag each checklist item with its priority: `[CRITICAL]`, `[HIGH]`, `[MEDIUM]`, `[LOW]`.\nSort checklists by priority (CRITICAL first, LOW last) so the most important items are at the top.\n\n### Step 11: User Confirmation Before Output\n\nBefore outputting the final checklists, present a summary for review:\n\n```\n## Deploy Prep Summary\nFound N total checklist items:\n- CRITICAL: X items (must be done before deploy)\n- HIGH: Y items (should be done around deploy time)\n- MEDIUM: Z items (can be done shortly after)\n- LOW: W items (can be done anytime)\n\nShall I generate the full checklists? Any categories you want me to focus on or skip?\n```\n\nWait for user confirmation before generating the detailed Pre-Release and Post-Release checklists. This avoids overwhelming the user with a 200-line checklist when they may only care about CRITICAL items.\n\n## Rules\n\n- NEVER modify any files — this is a read-only analysis skill\n- NEVER run migrations or any destructive commands\n- ALWAYS fetch latest before comparing (`git fetch origin`)\n- Use these tools only: Bash (git commands, grep, file reads), Read, Glob, Grep, Task (for parallelizing)\n- Skip build output directories (`node_modules\u002F`, `dist\u002F`, `build\u002F`, `target\u002F`, `__pycache__\u002F`, `.git\u002F`, `vendor\u002F`, `coverage\u002F`, `*.min.js`, `*.bundle.js`)\n- Skip auto-generated schema files when analyzing code logic, but DO read them for API schema change detection\n- If diff is extremely large (500+ files), ask user whether to run full analysis or focus on specific categories\n- ALWAYS show commit count and list of authors at the top of the report\n\n## Output\n\nPresent the report in this structure:\n\n```\n## Release Analysis Report\n**Source:** origin\u002F\u003Csource> (commit SHA)\n**Target:** origin\u002F\u003Ctarget> (commit SHA)\n**Date:** YYYY-MM-DD\n**Commits:** N commits\n**Authors:** [list]\n**Files changed:** N\n**Detected stack:** [language\u002Fframework]\n\n### Risk Summary\n| Category | Findings | Risk Level |\n|----------|----------|------------|\n| Env Vars | N new, M removed | Critical\u002FNone |\n| Migrations | N new | Critical\u002FNone |\n| Schema\u002FModel Changes | N files | Important\u002FNone |\n| New Services | N services | Critical\u002FNone |\n| Dependencies | N added, M bumped | Important\u002FNone |\n| API Breaking Changes | N breaking changes | Critical\u002FNone |\n| Infrastructure | N changes | Important\u002FNone |\n| Feature Flags | N new flags | Important\u002FNone |\n\n### Detailed Findings\n[Expandable sections per category with full details]\n\n### Pre-Release Checklist\n[Generated checklist with all items as empty checkboxes]\n\n### Post-Release Checklist\n[Generated checklist with all items as empty checkboxes]\n```\n\nDo NOT commit or modify anything. Present the full report for user review.\n\n### Cross-Skill Suggestions (append when relevant)\n- If CRITICAL migration or schema changes are found, add: \"Consider running `\u002Fdeep-review` on the migration files before deploying.\"\n- If the release includes significant new features, add: \"Consider running `\u002Ffeature-audit` to verify the feature is production-ready before release.\"\n",{"name":5,"phase":18,"effort":43,"description":7,"allowed-tools":44,"argument-hint":45,"catalog-order":46,"feedback-profile":37,"disable-model-invocation":47},"medium","Bash, Read, Grep, Glob","[source-branch] [target-branch]",100,true,"main","62a5cbde2da44ccf4660521f0e3b2286f71dcbfd","skills\u002Frelease-check","https:\u002F\u002Fgithub.com\u002Fcj-ways\u002Farcana","https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@cj-ways\u002Farcana","https:\u002F\u002Fgithub.com\u002Fcj-ways","2026-04-27 15:57:45",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":47},[57,60,63],{"tool":58,"command":59},"npx","npx skills add cj-ways\u002Farcana --skill release-check",{"tool":61,"command":62},"bunx","bunx skills add cj-ways\u002Farcana --skill release-check",{"tool":64,"command":65},"pnpm","pnpm dlx skills add cj-ways\u002Farcana --skill release-check","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcj-ways\u002Farcana\u002Fblob\u002Fmain\u002Fskills\u002Frelease-check\u002FSKILL.md",[],[69,105,130,149,174,196],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":85,"publishedAt":38},"01M6ER4PGRFCMZ3D11YCEQ7Q9H","v0-design","Generates optimized v0.dev prompts for UI design — full pages, single components, design systems, or redesigns. Analyzes the project, adapts questions to context, researches user-specified design references, and outputs ready-to-copy prompts following Vercel's three-part framework. Manual via \u002Fv0-design.","https:\u002F\u002Fgithub.com\u002Fcj-ways\u002Farcana\u002Fblob\u002Fmain\u002Fskills\u002Fv0-design\u002FSKILL.md",[75,80],{"categoryNo":76,"categoryName":77,"taxonomyType":78,"taxonomyTypeDesc":79},"01JBSEEDCAT000000000000015","视觉设计","SCENARIO","使用场景",{"categoryNo":81,"categoryName":82,"taxonomyType":83,"taxonomyTypeDesc":84},"01JBSEEDCAT000000000000032","设计师","PROFESSION","适用职业",[86,87,88,89,90,91,92,93,21,94,95,96,97,98,99,100,101,102,103,104],"design","v0","v0 design","components","component","design systems","framework","ui","write","context","design-system","ready","ui design","references","three","project","full","feature","app",{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":114,"publishedAt":38},"01M6ER4J1MAN09RA7ZVFQP5WC0","skill-scout","Scouts major skill providers for skills that match the current project — fetches catalogs, analyzes the codebase, cross-matches, and recommends with evidence. Critical assessment, not a dump of everything available. Manual via \u002Fskill-scout.","https:\u002F\u002Fgithub.com\u002Fcj-ways\u002Farcana\u002Fblob\u002Fmain\u002Fskills\u002Fskill-scout\u002FSKILL.md",[111],{"categoryNo":112,"categoryName":113,"taxonomyType":78,"taxonomyTypeDesc":79},"01JBSEEDCAT000000000000023","Skill与智能体开发",[115,116,117,118,119,120,121,36,33,21,122,123,124,125,126,101,127,128,23,129],"skill scout","scout","testing","security","workflow","assessment","Providers","webfetch","ops","evidence","focus","advisory","critical","dump","utility",{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":38},"01M6ER4EGNXCNN8P05RKVCQXHC","security-check","Quick security scan — hardcoded secrets, common vulnerabilities, dependency issues. Use when the user asks to check security, scan for secrets, or audit for vulnerabilities. Manual via \u002Fsecurity-check.","https:\u002F\u002Fgithub.com\u002Fcj-ways\u002Farcana\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity-check\u002FSKILL.md",[],[118,19,137,138,139,140,141,142,36,143,144,33,21,122,145,146,147,148,23,129],"security check","vulnerabilities","issues","security scan","audit","secrets","deps","common","use","dependency","scan","scope",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":158,"publishedAt":38},"01M6ER45AQCN9RDAXZA5A5W03C","refactor-plan","Plans and executes safe multi-file refactoring — maps dependency graph, batches changes into atomic commits, runs tests between batches. Prevents the cascading-breakage pattern where agents make sweeping changes that fail halfway. Use for renames, extractions, moves, or structural changes across multiple files. Manual via \u002Frefactor-plan.","https:\u002F\u002Fgithub.com\u002Fcj-ways\u002Farcana\u002Fblob\u002Fmain\u002Fskills\u002Frefactor-plan\u002FSKILL.md",[155],{"categoryNo":156,"categoryName":157,"taxonomyType":78,"taxonomyTypeDesc":79},"01JBSEEDCAT000000000000007","代码审查",[159,160,161,162,163,164,36,165,166,21,94,167,146,168,169,170,171,25,172,173],"refactor plan","refactor","plan","safe","graph","commits","refactoring","atomic commits","edit","dependency graph","files","maps","pattern","structural","make",{"skillNo":175,"name":176,"nameZh":6,"description":177,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":178,"categories":179,"keywords":184,"publishedAt":38},"01M6ER41VW96NCAMSQF8SV31J7","quick-review","Fast single-pass code review with strong false-positive suppression. Reviews git diff for runtime errors, data corruption, security breaches, operational incidents. Use for PR reviews and quick change validation. Manual via \u002Fquick-review.","https:\u002F\u002Fgithub.com\u002Fcj-ways\u002Farcana\u002Fblob\u002Fmain\u002Fskills\u002Fquick-review\u002FSKILL.md",[180,181],{"categoryNo":156,"categoryName":157,"taxonomyType":78,"taxonomyTypeDesc":79},{"categoryNo":182,"categoryName":183,"taxonomyType":83,"taxonomyTypeDesc":84},"01JBSEEDCAT000000000000030","开发工程师",[185,186,187,188,189,190,191,192,193,36,33,32,21,145,29,169,101,194,195,23],"review","quick review","code review","change","pr","code","validation","worktree","false-positive","runtime","false",{"skillNo":197,"name":198,"nameZh":6,"description":199,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":200,"categories":201,"keywords":205,"publishedAt":38},"01M6ER3Y97Y3WH1NJ35Q9F7XED","pressure-test","Stress-tests an idea, plan, proposal, claim, or request - finds missing assumptions, weak evidence, and asymmetric tradeoffs without manufacturing low-value objections. Use when the user wants adversarial analysis, wants the strongest case for and against something, or wants to know what is missing before deciding. Manual via \u002Fpressure-test.","https:\u002F\u002Fgithub.com\u002Fcj-ways\u002Farcana\u002Fblob\u002Fmain\u002Fskills\u002Fpressure-test\u002FSKILL.md",[202],{"categoryNo":203,"categoryName":204,"taxonomyType":78,"taxonomyTypeDesc":79},"01JBSEEDCAT000000000000008","测试与质量",[206,207,208,161,33,21,94,122,145,124,209,126,210,211,23,212,213,129,214,215],"test","pressure test","analysis","claim","tests","missing","proposal","case","manufacturing","stress"]