بنقرة واحدة
pr-ready
Pre-PR checklist — version bump, sw.js registration, DocVault status, Codacy findings.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Pre-PR checklist — version bump, sw.js registration, DocVault status, Codacy findings.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when starting a new patch session and needing to pick a Plane issue to work on before claiming a version lock and creating a worktree.
Use when starting a new patch session and needing to pick a Plane issue to work on before claiming a version lock and creating a worktree.
Post-deploy verification for both Portainer (home) and Fly.io (cloud) environments. Runs environment-appropriate health checks, log inspection, env var verification, cron validation, and endpoint smoke tests. Covers the gap between "deploy succeeded" and "deploy actually works." Triggers on: "deploy verify", "post-deploy", "verify deploy", "smoke test deploy", "did the deploy work", "check the deploy", "/deploy-verify"
StakTrakr-specific Phase 1 version bump — edits 6 files, trims What's New, delegates sw.js to pre-commit hook.
API feeds, pollers, feed thresholds, data paths, StakTrakrApi structure, Fly.io and health badge issues.
Ship dev→main — PR, resolve threads, GitHub Release. Only on explicit user "ready to ship".
| name | pr-ready |
| description | Pre-PR checklist — version bump, sw.js registration, DocVault status, Codacy findings. |
| allowed-tools | Bash, Read, Grep, Glob, mcp__codacy__codacy_get_repository_with_analysis, mcp__codacy__codacy_list_repository_issues |
Run all checks below in order. Output a single markdown table at the end with PASS / WARN / FAIL per check. Stop and flag blockers clearly — do not silently skip a check.
Compare the version in js/constants.js against the latest git tag.
# Get latest tag
git -C /Volumes/DATA/GitHub/StakTrakr describe --tags --abbrev=0
# Get version from constants.js
grep 'const APP_VERSION' /Volumes/DATA/GitHub/StakTrakr/js/constants.js
Find all .js files added since the last git tag. For each, verify it appears in both sw.js CORE_ASSETS and index.html as a <script> tag.
# Files changed since last tag (new JS files only)
git -C /Volumes/DATA/GitHub/StakTrakr diff --name-only --diff-filter=A $(git -C /Volumes/DATA/GitHub/StakTrakr describe --tags --abbrev=0) HEAD -- 'js/*.js'
For each new js/FILENAME.js:
sw.js for 'js/FILENAME.js' in CORE_ASSETSindex.html for src="js/FILENAME.js"sw.js OR index.html — name which file and which locationIf js/events.js or js/api.js were changed since the last tag, check for function names defined in both files.
# Get function names from events.js
grep -o 'function [a-zA-Z_][a-zA-Z0-9_]*' /Volumes/DATA/GitHub/StakTrakr/js/events.js | sort
# Get function names from api.js
grep -o 'function [a-zA-Z_][a-zA-Z0-9_]*' /Volumes/DATA/GitHub/StakTrakr/js/api.js | sort
Check whether any changed source files have a corresponding DocVault page with a stale updated timestamp. Look for pages whose sourceFiles frontmatter lists a file modified since the last tag.
# Files changed since last tag (all types)
git -C /Volumes/DATA/GitHub/StakTrakr diff --name-only $(git -C /Volumes/DATA/GitHub/StakTrakr describe --tags --abbrev=0) HEAD
Then grep DocVault pages for any of these file names in their sourceFiles frontmatter:
grep -rl "CHANGED_FILENAME" /Volumes/DATA/GitHub/DocVault/Projects/StakTrakr/ 2>/dev/null
/vault-update if unsure)/vault-update before pushingFetch open critical/error-level issues from Codacy for the StakTrakr repository.
Use mcp__codacy__codacy_list_repository_issues with provider gh, remoteOrganizationName lbruton, repositoryName StakTrakr. Filter for severity Error or Critical.
Output this table, filling in each row:
| Check | Status | Detail |
| ------------------------------- | -------------- | ---------------------------------------------------------------------- |
| 1. Version bump | PASS/FAIL/WARN | e.g. "3.33.93 → 3.33.94" or "still at v3.33.94 — bump needed" |
| 2. SW + index.html registration | PASS/FAIL | e.g. "js/new-feature.js missing from sw.js" |
| 3. Duplicate functions | PASS/FAIL/WARN | e.g. "No duplicates" or "loadMarketData in both events.js and api.js" |
| 4. DocVault | PASS/WARN/SKIP | e.g. "market-data.md references js/market-data.js — run /vault-update" |
| 5. Codacy | PASS/WARN/FAIL | e.g. "2 critical issues in js/api.js:L45" |
If any check is FAIL: output "NOT READY TO PUSH — fix blockers above." If all checks are PASS or WARN: output "READY TO PUSH — review warnings if any."