detect-conventions

📁 cblecker/claude-plugins 📅 9 days ago
1
总安装量
1
周安装量
#51239
全站排名
安装命令
npx skills add https://github.com/cblecker/claude-plugins --skill detect-conventions

Agent 安装分布

mcpjam 1
claude-code 1
replit 1
junie 1
windsurf 1
zencoder 1

Skill 文档

Detect Conventions

Repository Context

  • Commitlint config exists: !test -f commitlint.config.js -o -f .commitlintrc -o -f .commitlintrc.json -o -f .commitlintrc.yml && echo "yes" || echo "no"
  • Package.json has commitlint: !grep -q commitlint package.json 2>/dev/null && echo "yes" || echo "no"
  • Git hooks use commitlint: !grep -q "commitlint\|conventional" .git/hooks/commit-msg 2>/dev/null && echo "yes" || echo "no"
  • Recent commits: !git log -10 --pretty=format:"%s"
  • CLAUDE.md excerpt: !grep -i "conventional\|commit" CLAUDE.md .claude/CLAUDE.md 2>/dev/null | head -5 || echo "no mentions"

Task

Analyze the repository context above and determine:

  1. Uses conventional commits? (yes/no)
  2. Detection method: config_file, history_analysis, or claude_md
  3. Confidence: high (config exists), medium (60%+ commits match), low (unclear)
  4. Detected types in use: List commit types seen (feat, fix, docs, etc.)

Output format:

USES_CONVENTIONAL_COMMITS: yes|no
DETECTION_METHOD: config_file|history_analysis|claude_md|none
CONFIDENCE: high|medium|low
TYPES_IN_USE: feat, fix, docs, ...

Task Coordination

On start:

  • Call TaskList to find parent workflow task (if running as subagent)
  • Read parent task context if found (workflow type, branch)

On completion:

  • If parent task exists, update its metadata with findings:
    • metadata: { conventions: { style: "<conventional|standard>", prefix: "<type-if-conventional>", confidence: "<high|medium|low>" } }
  • If no parent task, return results directly to caller