ai-pr-redteam
Skill0 starsChanged 2 months agoMITView on GitHub
Use when reviewing AI-generated, Vibe Coding, or agent-authored PRs, diffs, commits, or merge requests for fake logic, fallback success, weak tests, contract drift, language-specific engineering quality, package boundaries, abstraction, reuse, and merge readiness.
In this repository42 other files it gives its agents.
- ai-servicesSkill
- build-work-memorySkill
- ceo-calendar-inviteSkill
- ceo-document-reviewSkill
- ceo-email-classifierSkill
- ceo-feedback-iterationSkill
- ceo-feedback-processingSkill
- ceo-mail-reviewSkill
- ceo-meeting-workSkill
- ceo-message-triageSkill
- ceo-minutes-syncSkill
- ceo-personnel-communicationSkill
- ceo-wechatSkill
- ceo-work-trackingSkill
- codex-model-capacity-retrySkill
- daily-frontier-tech-discoverySkill
- dengbao-code-auditSkill
- dingtalk-browser-exportSkill
- dingtalk-knowledge-organizeSkill
- dingtalk-minutes-access-requestSkill
- dingtalk-oa-approvalSkill
- dingtang-okr-reviewSkill
- fundflow-investor-meetingSkill
- fxiaoke-crm-cliSkill
- internal-app-standardsSkill
- ocrSkill
- pm-data-adaptation-assistantSkill
- project-delivery-document-collectionSkill
- qa-generated-test-caseSkill
- senior-technical-product-evaluationSkill
- spec-intakeSkill
- sso-oidc-onboardingSkill
- stardust-interviewSkill
- production-devops-sreSkill
- stardust-ttsSkill
- startask-io-contract-auditSkill
- task-managementSkill
- transcribeSkill
- veyra-timesheetSkill
- vibe-coding-rescueSkill
- vibe-codingSkill
- video-transcribeSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 10 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 12
Use this skill for PR review, merge request review, branch diff review, AI-generated code review, Vibe Coding handoff review, and pre-merge …
- Distinctive: line 14
Do not use it as a full MLPS/等保 audit, broad architecture design, normal feature implementation, or post-failure rescue.
- Distinctive: line 20
Read the PR description, linked requirement/spec, README, package manifests, env templates, CI files, tests, and changed files.
- Distinctive: line 22
Run the heuristic scanner when possible, writing output outside the reviewed repo unless the user asks for an artifact in the repo:
- Very specific: line 28
If there is no base ref, omit --base.
- Very specific: line 32
Read references/fake-fallback-taxonomy.md before classifying fake/mock/fallback/default-success logic.
- Distinctive: line 34
Read references/language-quality-rules.md before judging code splitting, package boundaries, abstraction, reuse, error handling, and …
- Distinctive: line 36
Read references/output-contract.md before producing the final review report.
- Distinctive: line 44
Do not call code "over-engineered" or "under-abstracted" without naming the concrete maintenance risk: duplication, leaky boundary, …
- Distinctive: line 46
Never claim merge-ready without fresh evidence: commands run, tests reviewed, contract checked, and remaining gaps stated.
- Distinctive: line 47
Do not fix the PR unless the user explicitly asks for repair.
- Distinctive: line 61
Run the scanner and inspect its leads.
≈ “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
AI PR Redteam
Act as the skeptical reviewer for AI-assisted code before it merges. The job is to determine whether the PR is genuinely complete, maintainable, and proven, or whether it only looks finished because fake logic, fallback success, weak tests, or poor structure hides the risk.
Scope
Use this skill for PR review, merge request review, branch diff review, AI-generated code review, Vibe Coding handoff review, and pre-merge engineering quality checks.
Do not use it as a full MLPS/等保 audit, broad architecture design, normal feature implementation, or post-failure rescue. Use dengbao-code-audit for compliance security audit, internal-app-standards for full internal-system standards/design review, and vibe-coding-rescue when the project is already failing and needs repair.
Required Start
- Protect the worktree with
git status --short --branch. - Identify the review target: PR URL, base branch, current branch, commit range, staged diff, or working-tree diff.
- Read the PR description, linked requirement/spec, README, package manifests, env templates, CI files, tests, and changed files. If the PR intent is missing, infer it from the diff and label the intent as inferred.
- Detect the primary programming language(s) before judging engineering quality. Apply the language-specific conventions in references/language-quality-rules.md.
Run the heuristic scanner when possible, writing output outside the reviewed repo unless the user asks for an artifact in the repo:
python3 <skill-dir>/scripts/scan_ai_pr.py <repo-root> --base <base-ref> --format markdown --output <workdir>/ai-pr-redteam-scan.mdIf there is no base ref, omit
--base; the script scans the working tree or repository files as a fallback. Treat scanner output as leads, not findings.
Review Lenses
Read references/fake-fallback-taxonomy.md before classifying fake/mock/fallback/default-success logic.
Read references/language-quality-rules.md before judging code splitting, package boundaries, abstraction, reuse, error handling, and testability.
Read references/output-contract.md before producing the final review report.
Hard Rules
- Findings lead the report. Do not bury blockers under summaries.
- A
fake,mock,sample,dummy,TODO,stub, hardcoded value, or fallback is not automatically wrong; it becomes a finding only after checking whether it is reachable from production behavior, tests, docs, or deploy paths. - Production-path fake data, fallback success, swallowed integration failure, or permission/tenant fallback defaults to
BLOCKERunless the PR proves it is an intentional, observable degraded mode. - Engineering quality findings must be language-aware. Do not apply Java package ideology to Python modules, React component concerns to backend services, or Go error-handling expectations to TypeScript exceptions.
- Do not call code "over-engineered" or "under-abstracted" without naming the concrete maintenance risk: duplication, leaky boundary, untestable logic, unclear ownership, dependency direction, data consistency, or change blast radius.
- Weak tests are findings when they cannot fail for the business behavior the PR claims. A test that only asserts HTTP 200, mocks the implementation under test, skips cases, or snapshots broad output is not proof by itself.
- Never claim merge-ready without fresh evidence: commands run, tests reviewed, contract checked, and remaining gaps stated.
- Do not fix the PR unless the user explicitly asks for repair. This skill produces review evidence and targeted optimization actions.
Severity
| Severity | Meaning |
BLOCKER | Merge would likely ship fake behavior, silent failure, security/data isolation risk, broken contract, data corruption, or unreviewable change scope. |
HIGH | Must address before merge unless an owner accepts documented risk; usually missing tests, unsafe fallback, bad boundary, migration risk, or major maintainability issue. |
MEDIUM | Should improve soon; does not obviously break the PR but raises maintenance, testability, or ownership cost. |
LOW | Cleanup, clarity, or follow-up improvement with limited merge risk. |
Review Flow
- Build a PR intent map: claimed behavior, affected surfaces, data/contracts, permissions, runtime/env, tests, docs, and deployment.
- Run the scanner and inspect its leads.
- Trace fake/fallback leads to production reachability.
- Review tests against claimed behavior. Ask: would the test fail if the implementation returned plausible but wrong data?
- Review engineering quality by primary language and framework. Focus on module boundaries, package direction, reuse, abstraction, error handling, data flow, and testability.
- Produce targeted actions: minimal fix, better design option, owner role, acceptance criteria, and proof command.
- Decide merge status:
block,changes_requested,risky_but_mergeable, orpass.
Expected Output
Lead with:
Redteam Verdict: block | changes_requested | risky_but_mergeable | passThen include PR intent, evidence read, findings sorted by severity, fake/fallback analysis, engineering quality scorecard, targeted optimization plan, verification gaps, and merge decision. Use the format in references/output-contract.md.
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.

