practical-development-validator

practical-development-validator is a skill for Claude Code, Codex from shenjingnan/xiaozhi-client. It costs 12 tokens per session (1,678 once invoked), scanned A, original, MIT.

A checklist for judging whether a software change is simpler than it needs to be. It looks for unnecessary abstractions, design patterns, configuration, future-proofing, and early optimization.

In plain words
What is it for?
Use it to review architecture and code changes, assess whether complexity matches the feature's value, and remove unnecessary structures or safeguards.
Why use it?
It helps prevent added complexity that increases maintenance and makes code harder for contributors to understand without solving a real problem.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/shenjingnan/xiaozhi-client/practical-development-validator
Any agent
npx skills add shenjingnan/xiaozhi-client --skill practical-development-validator
Clone the repo
git clone --depth 1 https://github.com/shenjingnan/xiaozhi-client

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for practical-development-validator

README.md
[![agentmods](https://agentmods.dev/badge/skills/shenjingnan/xiaozhi-client/practical-development-validator.svg)](https://agentmods.dev/skills/shenjingnan/xiaozhi-client/practical-development-validator)
Your own site
<a href="https://agentmods.dev/skills/shenjingnan/xiaozhi-client/practical-development-validator"><img src="https://agentmods.dev/badge/skills/shenjingnan/xiaozhi-client/practical-development-validator.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,678 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00012 $0.01678
Opus 5 $0.00006 $0.00839
Sonnet 5 $0.00002 $0.00336
Haiku 4.5 $0.00001 $0.00168

Measured 5d ago against content hash 717048275905, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

practical-development-validator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/practical-development-validator/SKILL.md · 210 lines

How it starts

The opening of the file, as written. The whole thing — 210 lines — stays where its author put it; the contents beside it link to each section on GitHub.

我是务实开发原则检查技能,专门帮助开发团队避免过度设计,确保代码实现符合"如无必要勿增实体"的核心原则。

技能使用原则

  • 检查是否引入了不必要的复杂性:评估代码变更是否增加了不必要的复杂度
  • 评估功能实现是否符合"如无必要勿增实体":确保每个实体都有明确的功能价值
  • 确保代码优雅但不过度设计:平衡代码质量和复杂度
  • 验证架构合理性但不冗余:确保架构设计有实际意义

技能能力

1. 过度设计检查

核心能力:识别代码中可能存在的过度设计和不必要的复杂性。

检查内容
  • 过度抽象:为了抽象而抽象的代码结构
  • 预防性编程:为"未来可能需要"而增加的复杂功能
  • 过度设计模式:不必要的复杂设计模式使用
  • 过度配置:过于复杂的配置系统
  • 过早优化:在没有性能问题时进行的性能优化
检查示例
// ❌ 过度抽象
abstract class BaseService<T, U, V> {
  abstract execute(request: T): Promise<U>;
  abstract validate(request: T): V;
  abstract handleError(error: Error): void;
}

// ✅ 简单直接
class UserService {
  async createUser(userData: UserData): Promise<User> {
    // 直接实现功能
  }
}

2. 复杂度评估

评估代码变更的复杂度是否与其功能价值匹配。

评估标准
  • 功能价值比:复杂度与实际功能价值的比例
  • 维护成本:新增代码对整体维护成本的影响
  • 理解难度:新贡献者理解代码的难度
  • 扩展性需求:是否真的需要当前设计的扩展性
复杂度指标
// 复杂度检查清单
interface ComplexityChecklist {
  // ✅ 合理的复杂度
  hasClearPurpose: boolean;           // 有明确的目的
  solvesRealProblem: boolean;         // 解决实际问题
  necessaryAbstraction: boolean;     // 必要的抽象
  maintainableCode: boolean;         // 可维护的代码

  // ❌ 过度的复杂度
  futureProofing: boolean;           // 为未来过度设计
  unnecessaryPatterns: boolean;      // 不必要的设计模式
  overConfiguration: boolean;        // 过度配置
  prematureOptimization: boolean;    // 过早优化
}

3. 实用性验证

验证代码实现的实用性,确保解决实际问题。

实用性检查
  • 问题匹配:代码是否解决了实际的用户问题
  • 功能必要性:每个功能模块是否都必要
  • 接口设计:API 设计是否简洁实用
  • 错误处理:错误处理是否实用而非过度
实用性示例
// ❌ 过度的错误处理
try {
  const result = await apiCall();
  if (result !== null && result !== undefined) {
    if (typeof result === 'object' && result.data) {
      // 过度嵌套的检查
    }
  }
} catch (error) {
  if (error instanceof NetworkError) {
    // 详细的错误分类
  } else if (error instanceof ValidationError) {
    // 详细的错误分类
  }
  // ...
}

// ✅ 实用的错误处理
try {
  const result = await apiCall();
  return result;
} catch (error) {
  console.error('API调用失败:', error);
  throw new Error('服务不可用');
}

Read the full file on GitHub · 210 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 210 lines · 12 tokens per session scan A 717048275905

Subscribe to this mod's changes

practical-development-validator is a skill published in the GitHub repository shenjingnan/xiaozhi-client (338 stars, last pushed 2d ago), licensed MIT. It adds 12 tokens to every session and 1,678 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens