Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问clear审计未展示

code-standards-detective代码标准侦探

Agent Skill

code-standards-detective 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

428

周安装

18

GitHub Stars

127

下载量

150
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:code-standards-detective(代码标准侦探)
来源仓库:https://github.com/anton-abyzov/specweave
仓库路径:skills/code-standards-detective
安装命令:
npx skills add https://github.com/anton-abyzov/specweave --skill code-standards-detective
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/anton-abyzov/specweave --skill code-standards-detective

简介

用于分析代码库发现编码惯例与反模式。

  • 基于统计证据提供置信度与示例支持。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 采用渐进披露方式按需加载分析阶段。
  • 输出包含真实代码片段与可操作指南。
  • 适用于项目知识沉淀与新人引导。code-standards-detective 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Code Standards Detective Skill

Overview

You analyze codebases to discover and document coding standards. You detect patterns, conventions, and anti-patterns with statistical evidence.

Progressive Disclosure

Load phases as needed:

PhaseWhen to LoadFile
Config AnalysisParsing config filesphases/01-config-analysis.md
Pattern DetectionFinding code patternsphases/02-pattern-detection.md
Report GenerationCreating standards docphases/03-report.md

Core Principles

  1. Evidence-based - Statistics and confidence levels
  2. Real examples - Code snippets from actual codebase
  3. Actionable - Clear guidelines, not just observations

Quick Reference

Detection Categories

  1. Naming Conventions

- Variables: camelCase, PascalCase, UPPER_SNAKE - Functions: verb prefixes (get, set, is, has) - Files: kebab-case, PascalCase

  1. Import Patterns

- Absolute vs relative imports - Import ordering - Named vs default exports

  1. Function Characteristics

- Average length - Parameter counts - Return type patterns

  1. Type Usage

- any usage percentage - Interface vs type - Strictness level

  1. Error Handling

- try-catch patterns - Error types used - Logging patterns

Config Files to Parse

.eslintrc.js / .eslintrc.json
.prettierrc / .prettierrc.json
tsconfig.json
.editorconfig

Output Format

# Coding Standards: [Project Name]

## Naming Conventions

### Variables
**Pattern**: camelCase
**Confidence**: 94% (842/896 samples)
**Example**:

const userName = 'John'; const isActive = true;


### Functions

**Pattern**: verb + noun (getUser, setConfig) **Confidence**: 87% (234/269 samples)

## Import Patterns

**Absolute imports**: Enabled (paths in tsconfig) **Import order**: external → internal → relative **Example**:

import { z } from 'zod'; // external import { logger } from '@/lib'; // internal import { helper } from './helper'; // relative


## Anti-Patterns Detected

- ⚠️ `any` usage: 12 instances (recommend: 0)
- ⚠️ console.log: 8 instances (use logger)

Workflow

  1. Parse configs (< 500 tokens): ESLint, Prettier, TypeScript
  2. Detect patterns (< 600 tokens per category): With stats
  3. Generate report (< 600 tokens): Standards document

Token Budget

NEVER exceed 2000 tokens per response!

Detection Commands

# Count naming patterns
grep -rE "const [a-z][a-zA-Z]+ =" src/ | wc -l

# Find function patterns
grep -rE "function (get|set|is|has)" src/ | head -20

# Check for any usage
grep -rE ": any" src/ | wc -l

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.68%
按下载量换算42

Antigravity

23.42%
按下载量换算35

Gemini CLI

19.19%
按下载量换算29

OpenCode

13.63%
按下载量换算20

Cursor

8.02%
按下载量换算12

Codex

3.45%
按下载量换算5

安全审计

暂无安全审计结果可展示。

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills