一键导入
audit-northstar
Audits easyskillz code changes against North Star principles for design integrity and correctness.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Audits easyskillz code changes against North Star principles for design integrity and correctness.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Documentation and best practices for using easyskillz to manage AI agent skills.
Create a new skill and automatically wire it to all registered AI tools.
Comprehensive QA workflow for easyskillz CLI - build, install locally, and test all flows.
Add a new AI tool to the project and wire all existing skills to it.
Set up easyskillz after cloning a repository or on a new machine.
| name | audit-northstar |
| description | Audits easyskillz code changes against North Star principles for design integrity and correctness. |
Audits easyskillz code changes — diffs, new files, staged changes, or PRs — against the five North Star principles defined in CONTRIBUTING.md.
Use this skill whenever someone asks to review, check, QA, or audit easyskillz changes for correctness, design integrity, or principle compliance. Also trigger when a PR or branch is being prepared and the user wants a second opinion on whether the implementation respects the project's design values.
Returns a per-principle PASS/FAIL verdict with specific file+line violations and actionable fixes.
.easyskillz/skills/. Tool-specific dirs are outputs, never inputs.easyskillz sync is the one command users remember. It handles everything on first run and is safe to re-run at any time.Never ask the user what to audit. Detect scope intelligently:
git diff --cached --name-only
git diff --name-only
git log -1 --name-only
Use piping to check all scenarios in one command:
git diff --cached || git diff || git diff HEAD~1..HEAD
The first non-empty result is what you audit. No user input required.
Run the detected git diff command to get actual code changes. Parse the diff to identify:
For each principle, scan the changes for violations:
PASS if:
.easyskillz/skills/ as source of truth.claude/skills/, .cursor/skills/) are only written to, never read fromFAIL if:
.easyskillz/skills/Common violations:
fs.readFileSync(path.join(toolDir, 'skill', 'SKILL.md')) — should read from .easyskillz/skills/ insteadPASS if:
FAIL if:
fs.writeFileSync without checking if file existsCommon violations:
fs.writeFileSync(instructionFile, content) — should check fs.existsSync first or use managed blocksfs.unlinkSync without checking if file is user-ownedisManaged() checks before overwriting instruction filesPASS if:
easyskillz sync workflowsync remains the one-command setupsync as the primary commandFAIL if:
sync no longer handles a critical setup stepCommon violations:
easyskillz init command that's required before syncPASS if:
FAIL if:
Common violations:
fs.unlinkSync(instructionFile) without checking if file has content outside managed blocksPASS if:
--json flag for machine-readable outputFAIL if:
--json support on new commandsCommon violations:
--json flagreadline prompts without TTY checkconsole.log for errors instead of console.errorOutput format:
# North Star Audit Report
## P1: Centralise — [PASS/FAIL]
[If FAIL: list violations with file:line and explanation]
## P2: Never Force the User — [PASS/FAIL]
[If FAIL: list violations with file:line and explanation]
## P3: Sync is the Entry Point — [PASS/FAIL]
[If FAIL: list violations with file:line and explanation]
## P4: Respect User Decisions — [PASS/FAIL]
[If FAIL: list violations with file:line and explanation]
## P5: Automation — [PASS/FAIL]
[If FAIL: list violations with file:line and explanation]
---
## Summary
- Principles passed: X/5
- Violations found: N
- Recommended actions: [list of fixes]
For each violation, provide:
src/, bin/, tests/, note that they're out of scope but still audit them if they interact with easyskillz logicsync is still documented as primary command and --json examples are presentUser: "Audit my changes"
→ Auto-detect: git diff --cached || git diff || git diff HEAD~1..HEAD, analyze all 5 principles, report
User: "Review this PR before I merge" → Auto-detect scope, run appropriate diff, audit and report (no questions asked)
User: "Check if this new feature respects our design principles" → Auto-detect changes, analyze, report violations with file:line citations
User: "Is this code change safe to merge?" → Auto-detect scope, audit all 5 principles (focus on P2 and P4), report
All invocations are autonomous — the skill detects what to audit and runs the analysis without asking for confirmation or additional input.
CONTRIBUTING.md — canonical source of North Star principlessrc/ — all implementation codetests/ — test files (should also follow principles)bin/easyskillz.js — CLI entry pointThis skill follows P5 (Automation) strictly:
|| to chain fallback detection (git diff --cached || git diff || git diff HEAD~1..HEAD)--json flag for structured violation reportsThe AI agent running this skill should execute it seamlessly without any back-and-forth with the user. The skill is self-contained and autonomous.