with one click
repo-assessment
Run comprehensive repo assessment with Codex (every 3 PRs)
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Run comprehensive repo assessment with Codex (every 3 PRs)
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Process autonomous task queue from do-work/ folder
Enter plan mode for complex tasks (pour energy into the plan for 1-shot implementation)
Initiate autonomous PR review process with Codex agent
Comprehensive security audit covering 10 threat categories
Install all automation for a new repo (git hooks + GitHub Actions)
Automated PR submission - runs pre-checks, creates PR, and starts review
| name | repo-assessment |
| description | Run comprehensive repo assessment with Codex (every 3 PRs) |
Created: 2026-02-09-00-00 Last Updated: 2026-02-23-00-00
This command should be run after every 3 merged pull requests to keep the repo clean and world-class.
First, check how many PRs have been merged since last assessment:
# Check recent merged PRs
gh pr list --state merged --limit 10
# Or check the counter managed by the post-merge hook
COUNTER_FILE="$(git rev-parse --git-common-dir)/hooks-pr-counter"
cat "$COUNTER_FILE" 2>/dev/null || echo "0"
If < 3 PRs since last assessment, skip this process.
Before running the assessment, check if any incident memos were written since the last assessment. These capture known failures and their root causes — Codex should factor them into the analysis.
# List incident memos, newest first
ls -t docs/incidents/*.md 2>/dev/null | grep -v TEMPLATE | grep -v README || echo "No incident memos found"
If memos exist, read them and include a summary in the Step 3 prompt (see below).
Open a new terminal session for Codex agent:
# In new terminal, same repo directory
codex "Hi Codex, I have been using an inferior agent to you for the past few days and this repo has gotten a bit messy. I need your help to save me from spaghetti code! Please comprehensively assess this repo and develop a plan to get it back on track. Look for redundant/conflicting code and documentation. Suggest some concrete steps to make this repo world class."
If incident memos were found in Step 2, append to the prompt:
Also, the following incidents occurred since the last assessment. Factor their root
causes and follow-up items into your analysis:
[paste relevant memo content here]
Copy the complete Codex response when ready.
Tell the user:
A review agent comprehensively assessed the entire repo. I will now critically assess this feedback, make changes as I see fit, and submit a pull request for the improvements.
Codex Assessment:
{paste complete Codex response here}
Then:
git checkout -b refactor-codex-$(date +%Y%m%d)Once refactor PR is submitted, follow the standard /pr-review process:
After refactor is merged, the post-merge hook automatically resets the counter when it reaches 3. To manually reset:
COUNTER_FILE="$(git rev-parse --git-common-dir)/hooks-pr-counter"
echo "0" > "$COUNTER_FILE"
echo "Last assessment: $(date +%Y-%m-%d-%H-%M)" >> .codex/assessment-history.txt
After the refactor is merged, clean up local git state that accumulated during the assessment and refactor cycle:
/cleanup-all
This reviews worktrees, branches, and stashes in sequence. Review and approve any generated scripts before running them.
Return to roadmap/priorities and continue development.
PR tracking is fully automated by the post-merge git hook. The counter is stored at
$(git rev-parse --git-common-dir)/hooks-pr-counter and incremented automatically on
every git pull that includes a merge. When the count reaches 3, the hook prints the
assessment waterfall reminder and resets the counter to 0.
Manual check:
COUNTER_FILE="$(git rev-parse --git-common-dir)/hooks-pr-counter"
cat "$COUNTER_FILE" 2>/dev/null || echo "0 (counter not yet initialized)"
No separate script or GitHub Action is needed -- the git hook handles everything.