agentleFS
Docat0209Docat0209/SoloForge/skills/staging-verify/SKILL.md

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

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
  1. Very specific:

    Run git log main..dev --oneline to list all changes since last release.

    line 10
  2. Distinctive:

    Verify the environment is correctly configured before merge:

    line 19
  3. Distinctive:

    If ANY configuration is missing: STOP.

    line 27
  4. Distinctive:

    If any structural checks fail, use this verdict block instead:

    line 66
  5. Distinctive:

    Create PR from dev→main with the verification report as the PR body

    line 75
  6. Distinctive:

    All pass → "Merge dev→main, then run post-merge"

    line 85

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

#TypeDescriptionIssue #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.example or 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 localhost or 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, FIXME in 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 release

If any structural checks fail, use this verdict block instead:

### Verdict
❌ BLOCKED — [N] structural issues found. Fix before merging.

If ALL pass: Proceed autonomously:

  1. Create PR from dev→main with the verification report as the PR body
  2. Merge the PR: gh pr merge NUMBER --merge
  3. 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"

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.