staging-verify
Skill1 starsChanged 7 months agoMITView on GitHub
Staging environment verification gate for release merges. Triggers ONLY when: about to merge dev→main, or all milestone issues are closed and ready for release. Do NOT trigger for feature→dev merges or during development.
- Reads credentials
In this repository30 other files it gives its agents.
- claude.mdCLAUDE.md
- biz-thinkSkill
- biz-validateSkill
- brand-buildSkill
- community-engageSkill
- content-createSkill
- content-distributeSkill
- copy-craftSkill
- data-decideSkill
- finance-opsSkill
- growth-trackSkill
- infra-opsSkill
- issue-createSkill
- legal-guardSkill
- post-mergeSkill
- pre-codeSkill
- pre-commitSkill
- pre-prSkill
- product-evalSkill
- project-initSkill
- retroSkill
- roadmap-steerSkill
- sales-closeSkill
- search-evalSkill
- self-reviewSkill
- sopSkill
- support-opsSkill
- test-gateSkill
- ux-auditSkill
- work-breakdownSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Run git log main..dev --oneline to list all changes since last release.
- Distinctive: line 19
Verify the environment is correctly configured before merge:
- Distinctive: line 27
If ANY configuration is missing: STOP.
- Distinctive: line 66
If any structural checks fail, use this verdict block instead:
- Distinctive: line 75
Create PR from dev→main with the verification report as the PR body
- Distinctive: line 85
All pass → "Merge dev→main, then run post-merge"
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
This skill is the automated pre-merge structural check for release merges (dev → main). It verifies that all changes are accounted for, environment configuration is complete, and platform settings are correct. Functional testing (Playwright + user testing) happens AFTER merge in post-merge, not here.
Step 1: Identify the Delta
Run git log main..dev --oneline to list all changes since last release. Run git diff main..dev --stat to see files changed. Categorize each change: new feature (feat:), bug fix (fix:), or other. For each feat/fix commit, find the linked issue number and read its acceptance criteria.
Output a delta summary table:
| # | Type | Description | Issue # | AC Count |
Step 2: Environment and Platform Configuration Check
Verify the environment is correctly configured before merge:
- Environment variables: verify ALL required env vars are documented and set for the staging/production environment (not just localhost). Check
.env.exampleor deployment config for any new vars introduced in this delta. - OAuth/Auth config: if the app uses OAuth (Google, GitHub, Supabase Auth, etc.), verify the redirect URLs include the production/staging domain. A common failure: redirect URLs set to
localhostor missing from the provider's allow list. - Payment/webhook config: if the app has payment integration (Stripe, Polar, etc.), verify the webhook URL and API key mode (test vs. live) match the target environment.
- Database: verify any new migration files exist and are committed if schema changed.
- Third-party services: verify all external service integrations (email, storage, CDN) have the credentials and config required for the target environment.
If ANY configuration is missing: STOP. Fix the configuration gap first, then re-run this check.
Step 3: Pre-Merge Structural Verification
For each change in the delta, verify WITHOUT running the app:
- Code completeness: every issue's acceptance criteria can be traced to committed code changes
- Test coverage: every feat/fix issue has corresponding test files (unit at minimum)
- No debug artifacts: grep for
console.log,debugger,TODO,FIXMEin changed files - No secrets: grep for hardcoded API keys, tokens, passwords in changed files
- Dependencies declared: any new npm/pip/etc. packages are in the manifest files
- Database migrations: if schema changed, migration files exist and are committed
This is NOT functional testing — that happens in post-merge after deployment. This is a checklist to ensure nothing was forgotten before the code hits main.
Step 4: Verdict and Report
Generate a verification report in this format:
## Staging Verification Report
**Date**: YYYY-MM-DD | **Staging URL**: <url> | **Dev commit**: <hash>
### Delta Summary
| # | Type | Description | Issue |
|---|------|-------------|-------|
| 1 | feat | Add CSV export | #12 |
| 2 | fix | Sidebar collapse on mobile | #15 |
### Structural Check Results
| # | Feature | Code Complete | Tests Exist | No Debug/Secrets | Status |
|---|---------|--------------|-------------|-----------------|--------|
| 1 | CSV export | ✅ | ✅ | ✅ | ✅ PASS |
| 2 | Sidebar fix | ✅ | ✅ | ✅ | ✅ PASS |
### Verdict
✅ ALL VERIFIED — Proceeding with dev→main merge and releaseIf any structural checks fail, use this verdict block instead:
### Verdict
❌ BLOCKED — [N] structural issues found. Fix before merging.If ALL pass: Proceed autonomously:
- Create PR from dev→main with the verification report as the PR body
- Merge the PR:
gh pr merge NUMBER --merge - Invoke
post-merge(which will deploy, run Playwright verification, and create the release)
If ANY fail: Fix the gap (missing tests, debug artifact, undeclared dependency, etc.), commit to dev, and re-run this check. Do not merge.
Next Steps
Report to user: "Structural check [PASS/FAIL]. Delta: [N changes]. Config: [complete/gaps]. Issues: [list]"
Suggested next steps (user decides):
- All pass → "Merge dev→main, then run post-merge"
- Failures found → "Fix gaps, then re-run"
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

