Skill Grader
Agent Buildingskill-graderSkill Grader is an Agent Skill for agent building published in the NineWorlds/serenity-android repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Evaluates skills based on discoverability, agent-friendliness, and consumption efficiency. Returns a Letter Grade (A+ to F) and actionable coaching.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/NineWorlds/serenity-android/blob/HEAD/.skills/skill-grader/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/skill-grader, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Skill Grader (Compliance Scorecard)
Purpose
This skill audits other skills for discoverability, instruction clarity, and token efficiency. It provides a formal "Compliance Scorecard" and an HTML audit report.
Compliance Scorecard Rubric
| Category | Weight | Focus |
|---|---|---|
| I. Discoverability | 30% | Clear description, triggers, and problem domain mapping. |
| II. Instruction Clarity | 20% | Modular, step-by-step, no "vibe" instructions, clear constraints. |
| III. Token Efficiency | 20% | Lazy loading, usage of references vs. embedded bloat. |
| IV. Simulated Consumption | 30% | Test result: Does it produce "Gold Standard" code? |
Operational Protocol
1. Simulated Consumption (The Dry Run)
- The grader reads the skill and its
references/. - It executes a test prompt based on the skill's purpose.
- It grades the result against the project's architecture standards.
2. The Grading Scale
- A+ (95-100%): Easily discovered, perfect test results, highly efficient.
- A (90-94%): Highly discoverable, minor polish needed.
- B (80-89%): Solid, but lacks "Gold Standard" polish.
- C (70-79%): Technically usable, but needs description/token cleanup.
- D (60-69%): Non-Critical Failure (often due to being hidden or failing non-critical optional items).
- F (< 60%): Critical Failure (Test suite failure, totally undiscoverable, or architectural violation).
3. Execution Workflow
- Initial Scan: Audit
SKILL.mdand metadata. - Data Preparation:
- The Grader MUST create/update
memory/compliance_report.jsonusing the template atassets/grading_report_template.jsonBEFORE executing any scripts. - Schema Verification: The generated JSON MUST match the schema required by the generation script, including mandatory fields:
skill_name,audit_date,score(integer),grade, and thefindingsobject.
- The Grader MUST create/update
- Report Generation: Execute the mandatory generation script relative to the skill root to process this data:
python3 scripts/generate_report.py ./ - Final Review: Ensure
memory/audit_report.htmlwas generated by the script in the target skill'smemory/directory.
4. Mandatory Artifact Generation (Definition of Done)
- Automatic Directory Creation: If the target skill's
memory/directory does not exist, the Grader MUST create it before artifact generation. - Persistent Reporting: Every execution of this skill MUST conclude by creating/updating:
memory/compliance_report.jsonin the target skill directory.memory/audit_report.htmlin the target skill directory.
- Automatic Failure on Missing Artifacts: If these files are not created/updated at the end of the execution, the audit is considered incomplete and failed.
- MANDATORY TOOLING: The execution of
python3 scripts/generate_report.py ./is the ONLY way to creatememory/audit_report.html. The agent is strictly forbidden from manually generating this file. - Atomic Commitment (NON-NEGOTIABLE): The agent is STRICTLY PROHIBITED from reporting a "Final Grade" in the chat UNLESS the
memory/compliance_report.jsonandmemory/audit_report.htmlhave been successfully created/updated on the filesystem via the mandatory script. - Verification: Before providing a grade, the agent MUST verify the existence of both required files on the filesystem.
Strict Compliance
- All audits MUST be reported in the target skill's
memory/directory. - Critical failures (Architectural/DI violations) trigger an automatic F.
- For programmatic consistency, all reports MUST follow the templates located
in the
assets/directory:audit_report.htmlMUST useassets/audit_report_template.htmlcompliance_report.jsonMUST useassets/grading_report_template.json
Deterministic Coaching (Suggestions for Improvement)
To ensure suggestions are thorough, deterministic, and project-agnostic, the Grader MUST evaluate the skill against these four "Coaching Pillars":
-
The "North Star" Alignment:
- Check: Does the skill explicitly link to or reference the project's master architectural guides (e.g.,
AGENTS.md,architecture.md)? - Suggestion Pattern: "Strengthen architectural coupling by adding a 'Standards Reference' section pointing to [Missing File]."
- Check: Does the skill explicitly link to or reference the project's master architectural guides (e.g.,
-
The "Day Zero" Test:
- Check: If a developer followed ONLY these instructions, what crucial configuration or setup step is missing?
- Suggestion Pattern: "Improve implementation readiness by including mandatory [Dependency/Config] setup steps."
-
The "Constraint Hardening" Check:
- Check: Does the skill clearly state what NOT to do (Hard Constraints)?
- Suggestion Pattern: "Reduce risk by explicitly documenting negative constraints (e.g., 'DO NOT use [Forbidden Library]')."
-
The "Verification Loop":
- Check: Does the skill provide a way for the user (or another agent) to verify the result is correct?
- Suggestion Pattern: "Enhance reliability by adding a 'Verification' section with specific test cases or shell commands."
Every audit report MUST include at least one actionable suggestion from each pillar where a gap is identified. This ensures consistent, high-fidelity coaching across different sessions.
Include best practices and known issues that may be over looked.