惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Vulnerabilities – Threatpost
Google DeepMind News
Google DeepMind News
Scott Helme
Scott Helme
NISL@THU
NISL@THU
T
Tor Project blog
T
Tenable Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Privacy International News Feed
Cyberwarzone
Cyberwarzone
Project Zero
Project Zero
S
Schneier on Security
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
O
OpenAI News
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
美团技术团队
Hugging Face - Blog
Hugging Face - Blog
V2EX - 技术
V2EX - 技术
H
Help Net Security
C
Check Point Blog
T
The Exploit Database - CXSecurity.com
Forbes - Security
Forbes - Security
人人都是产品经理
人人都是产品经理
U
Unit 42
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Microsoft Azure Blog
Microsoft Azure Blog
D
Docker
I
InfoQ
Schneier on Security
Schneier on Security
K
Kaspersky official blog
罗磊的独立博客
Cisco Talos Blog
Cisco Talos Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
S
Security Affairs
Microsoft Security Blog
Microsoft Security Blog
GbyAI
GbyAI
雷峰网
雷峰网
G
GRAHAM CLULEY
Cloudbric
Cloudbric
IT之家
IT之家
Stack Overflow Blog
Stack Overflow Blog
AI
AI
L
LINUX DO - 热门话题
云风的 BLOG
云风的 BLOG
博客园_首页
T
Threat Research - Cisco Blogs
S
Secure Thoughts
有赞技术团队
有赞技术团队

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
skill-insp: A Skill That Scores Other Skills
Conan · 2026-05-26 · via DEV Community

Conan

skill-insp: A Skill That Scores Other Skills

If you've been building Claude Code skills for a while, you've probably noticed a pattern: every skill author makes the same mistakes the first few times. Vague descriptions that fail to trigger. Workflows that don't say what to do when files are missing. allowed-tools that ask for Bash with no glob restriction. No eval scenarios, so you have no idea if the skill actually works.

I built skill-insp to catch those mistakes automatically. It's a skill that inspects other skills, scores them across 8 dimensions, and tells you what to fix.

Source: github.com/conanttu/skills

What It Does

You point skill-insp at a folder containing a SKILL.md and it gives you:

  1. A 0–100 score across 8 weighted dimensions (Structure, Triggering, Usability, Completeness, Progressive Disclosure, Testability, Maintainability, Safety & Trust)
  2. A prioritized list of findings (High / Medium / Low) with file:line references
  3. An HTML report you can open in a browser
  4. The ability to apply high-priority fixes with automatic backup and revert with SHA-256 hash verification
  5. A functional eval runner that spawns sub-agents against fixture skills to verify the skill's own logic
✨ skill-insp ✨

Overall: my-skill scores 66/100 — risk low, readiness usable-with-improvements.

Key strengths
- Minimal, appropriate permissions (Read and Write only)
- Clear 3-step workflow
- Clean YAML frontmatter with version tracking

Scorecard
| Dimension              | Score |
|------------------------|-------|
| Structure              |  8/10 |
| Triggering             |  9/15 |
| Usability              |  9/15 |
| Completeness           |  7/15 |
| Progressive Disclosure |  7/10 |
| Testability            |  4/10 |
| Maintainability        |  8/10 |
| Safety & Trust         | 14/15 |
| Total                  | 66/100 |

Recommendations
  Medium  Add error-handling for missing or unreadable files.
  Medium  Create evals/ with at least one input and expected output.
  Low     Expand README with usage examples or remove the placeholder.

HTML report: /abs/path/to/cache/my-skill/latest.html
✨ skill-insp ✨

Enter fullscreen mode Exit fullscreen mode

The Scoring Rubric

The 100 points are weighted toward what actually breaks skills in practice:

Dimension Max Why it matters
Structure 10 Frontmatter parses, folder layout makes sense
Triggering 15 Description gets the skill invoked in the right contexts
Usability 15 Workflow steps are concrete and runnable
Completeness 15 Edge cases, inputs/outputs, failure handling
Progressive Disclosure 10 SKILL.md stays lean; details live in references
Testability 10 Evals or success criteria exist
Maintainability 10 No duplication, no stale placeholders
Safety & Trust 15 Permissions scoped, no hidden network, no destructive ops

Safety & Trust is the dimension where pattern-matching tools fall apart, so skill-insp does semantic analysis here. It distinguishes between documentation and executable code: a SKILL.md that says "check for rm -rf usage" in a safety checklist is not a destructive operation. A scripts/cleanup.sh that actually runs rm -rf "$TEMP_DIR" is, and gets flagged with the file:line reference.

How It's Built

The skill follows the "model is the analyzer" pattern. There's no Python or Node script that parses YAML and counts characters. Instead:

skill-insp/
├── SKILL.md                       # Workflow + the 4 modes (default, detailed, apply, revert) + Run Evals
├── README.md
├── references/
│   ├── rubric.md                  # Scoring dimensions and what good looks like
│   └── output-format.md           # JSON schema for analysis.json
├── scripts/
│   ├── render-html.js             # analysis.json → latest.html
│   └── run-evals.js               # fixture setup + sub-agent prompt generation
├── assets/
│   └── report_template.html       # Self-contained HTML template
└── evals/
    └── evals.json                 # 8 functional eval scenarios

Enter fullscreen mode Exit fullscreen mode

Two deterministic scripts handle the parts that should be deterministic:

  • render-html.js turns a JSON analysis into a self-contained HTML report. The template uses CSS custom properties for theming, conic-gradient score rings, and an auto-hidden eval results section.
  • run-evals.js creates a fixture skill in cache/_fixtures/<id>/, copies a snapshot of skill-insp itself into _skill_home/ so sub-agents can resolve <this-skill> references, and prints a self-contained sub-agent prompt.

Everything else — reading files, parsing YAML, evaluating the rubric, distinguishing documentation from code — is done by the model. This sounds slower than a parser, but it's actually the only way to do it correctly. A regex doesn't know that rm -rf inside a markdown code fence labeled "examples to flag" is not the same as rm -rf inside an executable script.

Progressive Disclosure in Practice

Earlier versions of skill-insp had a 300-line SKILL.md with the entire rubric inline. That hit context budget hard and made the skill harder to edit. The current layout pushes details to references:

  • SKILL.md holds the workflow and mode entry points. ~150 lines.
  • rubric.md holds the scoring dimensions, priority levels, compactness rules, and safety guidance. Only loaded when the skill actually scores something.
  • output-format.md holds the JSON schema. Only loaded when writing analysis.json.

The result: SKILL.md is small enough to read in one sitting, and the model only loads the rubric when it's about to score.

The Eval Runner

This is the part that took the most iteration. The idea is simple: skill-insp ships with 8 eval scenarios in evals/evals.json, each describing a user prompt, fixture files to create, and expectations to verify. To run them:

node scripts/run-evals.js <skill-path> list
node scripts/run-evals.js <skill-path> setup <id>

Enter fullscreen mode Exit fullscreen mode

setup creates a fixture directory, writes the fixture files, copies skill-insp's own resources into _skill_home/, and prints a JSON payload that includes a sub_agent_prompt. The parent agent reads that JSON, spawns a sub-agent with the prompt, and after the sub-agent finishes, checks each expectation:

  • File expectations ("analysis.json is written") → find over the fixture directory.
  • Content expectations ("a high-priority finding is raised") → read the output files.
  • Behavioral expectations ("the model reports an error and stops") → judge from the sub-agent's text output.

The Sandbox Gotcha

In the first version, fixtures were created under os.tmpdir(). This worked when I ran it manually, but sub-agents spawned by the harness were sandboxed to the project root — they got "permission denied" on every Read and Bash call against /var/folders/.../T/eval-skill-insp-*. Three out of eight evals failed for sandbox reasons that had nothing to do with the skill's logic.

The fix was a one-line change: move fixtures into cache/_fixtures/<id>/ inside the project. Now sub-agents inherit the project's filesystem permissions, and the cache directory is .gitignored so it doesn't pollute commits. After the change, all 8 evals run cleanly.

Lesson worth remembering: if you're going to spawn sub-agents, keep their working directory inside the parent's sandbox. Temp directories outside the project tree look like a clean choice but break under tighter permission policies.

Apply and Revert

When you say "apply recommendations", skill-insp:

  1. Re-reads the target files (state may have changed since the inspection).
  2. Copies each file it's about to modify into <cache_dir>/last-apply/.
  3. Computes SHA-256 hashes before and after, recording them in manifest.json.
  4. Makes the minimal edits.
  5. Re-runs the analysis so you see the new score.

The manifest looks like this:

{
  "applied_at": "2026-05-25T23:16:00Z",
  "recommendations_applied": [
    { "priority": "high", "dimension": "triggering", "text": "Replace vague description..." },
    { "priority": "high", "dimension": "usability", "text": "Add a ## Workflow section..." },
    { "priority": "high", "dimension": "completeness", "text": "Add allowed-tools list..." }
  ],
  "files": [
    {
      "relative_path": "SKILL.md",
      "before_sha256": "e698920f94613f8fc335cd0e941938e0990bedd72cea66e52a6b956d4ff47845",
      "after_sha256":  "10c1fafffbfd2b0089a85e72aafc43432374ef627cb0b41602f8396083fa2800"
    }
  ]
}

Enter fullscreen mode Exit fullscreen mode

Revert is the inverse: read the manifest, verify the current file hash matches the recorded after_sha256 (so we don't blow away edits made after the apply), then restore from backup. If the hash doesn't match, skill-insp reports the conflict instead of overwriting. It never falls back to git reset --hard or git checkout -- — those are blast-radius operations that don't belong in a recovery path.

Self-Inspection

Because skill-insp is itself a skill, it can score itself:

You: 评估 .claude/skills/skill-insp
Claude: ✨ skill-insp ✨
        Overall: skill-insp scores 94/100 — risk low, readiness ready.
        ...

Enter fullscreen mode Exit fullscreen mode

The first time I did this, the report flagged things I'd already half-noticed but not bothered to fix: the cache slug derivation rule was dense without an example, the description didn't mention "fix" or "improve" as triggers, and there was no Node.js version floor documented. All of these became Low/Medium recommendations, which I then applied — and the score went up.

This is the most useful feedback loop I've found for skill authoring: write the skill, run skill-insp against it, apply the high-priority recommendations, repeat. The eval suite then verifies the workflow still works end-to-end.

When NOT to Use It

skill-insp's description explicitly says "Not for general code review." It's not a linter for arbitrary Python or TypeScript. It's specifically tuned to the structure and conventions of Claude Code skills:

  • It expects SKILL.md with YAML frontmatter.
  • It scores against a skill-specific rubric.
  • Its safety analysis is calibrated to skills (permission scoping, undisclosed network access in scripts, prompt injection in instructions).

If you point it at a normal source tree, it'll refuse to score because there's no SKILL.md — that's the intended behavior, not a bug.

Trying It

Clone the repo and drop the folder into your Claude Code skills directory:

git clone https://github.com/conanttu/skills.git
ln -s "$(pwd)/skills/skill-insp" ~/.claude/skills/skill-insp

Enter fullscreen mode Exit fullscreen mode

Then in any Claude Code session:

inspect the skill at ./my-skill

Enter fullscreen mode Exit fullscreen mode

Or in Chinese:

evaluate ./my-skill

Enter fullscreen mode Exit fullscreen mode

The trigger phrases are listed in the description so the skill is invoked automatically. After the inspection, follow the numbered prompts:

  1. detailed mode to expand evidence
  2. apply recommendations to auto-fix high-priority findings
  3. run evals to verify the skill with eval scenarios
  4. revert to undo the last apply

What's Next

The current version is 1.0.0. A few things I'd like to add:

  • Diff view in the HTML report showing what apply actually changed.
  • Cross-skill consistency checks for repos that ship multiple skills.
  • Optional schema validation for evals.json and analysis.json.

If you build skills regularly, give it a try and let me know what falls over. The eval scenarios in evals/evals.json are a good place to start if you want to extend it — adding a new scenario is just adding a JSON entry with a prompt, fixture files, and expectations.