AI Work Acceptance Assistant
Origin: Extracted from the "How You Work with AI.md §4 How to Accept AI's Work" in the Parent-Child Growth Record Construction Kit, with project names removed to become a general methodology.
What This Is
Every time AI reports "it's done," users often don't know how to verify. This skill turns acceptance into a four-dimensional actionable checklist and provides a script that automatically scans for the most common security/consistency issues, outputting a PASS / WARN / FAIL report along with a security score.
The script comes with --self-test, allowing you to build a sample project with vulnerabilities to prove it can catch them—you don't have to trust it blindly.
When to Use
- User says: "Accept the AI's work" / "AI says it's done, take a look" / "Check if the AI code is secure"
- User asks: "Are the field names and interface paths consistent with the plan?" / "Are there any hardcoded keys?"
- Any quality gate after a coding task is delivered
The Four-Dimensional Acceptance Method (Core Workflow)
Each time you accept, follow these four steps. If any step FAILs, send the work back to AI for rework:
① Functionality
- Check each "completion criterion" from the requirements document one by one
- Test with the user's real data, not just the sample data AI provided
- Boundary cases must be tested: empty data, large data, special characters
- Main pages should open without errors; key operations (save/submit) should provide feedback
② Field and Interface Name Consistency
- Directly ask AI: "Are the field names and interface paths you used the same as defined in the requirements/planning document?"
- If inconsistent, have it revert to the names in the plan—do not accept AI's self-created names
- If a planning file (e.g., interface list) is provided, use the script to compare actual paths in the code
③ Code Security
- Ask AI to show key code and check for hardcoded passwords / API Keys / Tokens
- Check whether
.envhas been committed to the codebase (.gitignoremust include.env) - If you don't understand, ask AI to explain sensitive parts in plain language
- Use the
acceptance.pyscript to auto-scan for secrets + gitignore check
④ Regression Check
- Every time AI modifies code, re-test the previously working features
- If something that worked before suddenly breaks, immediately feedback to AI
Script Usage
# 0) First prove the scanner works (recommended before first use)
python acceptance.py --self-test
# 1) Full scan of the code directory: hardcoded keys, .env in repo, interface path comparison
python acceptance.py \
--code <project directory> \
--spec <optional: planning/interface list file, for path comparison> \
--report <output md path>
# 2) Scan only git changes for this commit (closer to "AI just edited" scenario)
python acceptance.py --code <project directory> --diff
# 3) Machine-readable output (for CI/other scripts)
python acceptance.py --code <project directory> --json
Scan coverage: hardcoded keys (API Key / Secret / Token / password / AWS / GitHub / Slack / JWT / WeChat appsecret / private key block / high-entropy strings), .env in repo, interface path deviation from plan.
The script outputs an acceptance report in markdown format, including four-dimensional conclusions, each item as PASS/WARN/FAIL, and a security score (mechanical items 0-100).
Deliverables
- Four-dimensional acceptance checklist (checkable)
- An
acceptance_report.md: auto-scan results + manual verification to-do + overall judgment (publishable / needs rework) + security score
Important Notes
- The script can only check "mechanically scannable" items (plaintext keys, .env in repo, path deviations); functional correctness and regression still require manual or real-data testing—the script is not a substitute.
- Do not hand over real
.envvalues to AI; the script only checks "whether they exist in the code" and does not read.envcontent. - This skill is a "gate," not a "test double"—it helps users ask the right questions and identify hidden risks, but final judgment rests with the user.