跳到正文
cccskills
免费在 GitHub 公开

template-candidates

Analyse files for ArchitectKB template repository suitability

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md4.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Skill: Template Candidates

Command: /template-candidates [--category <type>] Model: 🟡 Sonnet Agent: None (direct execution)

Purpose

Analyse files in this vault and identify candidates suitable for the ArchitectKB template repository. Performs detailed content analysis to ensure files are generic and reusable.

When to Use

  • After /template-changelog identifies new/modified files
  • Before running /template-sync
  • When deciding what features to contribute upstream

Categories

Filter by category with --category:

CategoryDirectoryDescription
scripts.claude/scripts/Python/Shell automation
skills.claude/skills/Skill definitions
schemas.claude/schemas/JSON validation schemas
hooks.claude/hooks/Pre/post execution hooks
rules.claude/rules/Reference documentation
templatesTemplates/Note templates
allAll aboveFull analysis

Implementation

Step 1: Scan for New/Modified Files

Compare with template repo:

VAULT = Path("~/Documents/GitHub/BA-DavidOliver-ObsidianVault").expanduser()
TEMPLATE = Path("~/Documents/GitHub/ArchitectKB").expanduser()

DIRS_TO_COMPARE = [
    ".claude/scripts",
    ".claude/skills",
    ".claude/schemas",
    ".claude/hooks",
    ".claude/rules",
    "Templates",
]

Step 2: Content Analysis

For each candidate file, check for:

Disqualifying Content (AUTO-EXCLUDE)

PatternReason
Acme Corp, BA-, britishairwaysCompany-specific
@ba.com, atlassian.net/wiki/spaces/BAInternal URLs
API keys, tokens, passwordsSecurity risk
/Users/david.oliver/Hardcoded personal paths
ERPSystem, Alpha, Beta, DataPlatform, AlertHubBA-specific projects/systems
notion.so/ba-workspaceInternal integrations

Qualifying Content (GOOD SIGNS)

PatternReason
Generic variable names$VAULT_PATH, ${PROJECT}
Configuration via environmentos.environ.get()
Template placeholders{{company}}, <your-org>
Well-documented functionsDocstrings, comments
Error handlingTry/except, validation

Step 3: Scoring System

Score each file 0-100:

ScoreClassificationAction
90-100ReadyCan sync directly
70-89Minor editsSmall sanitisation needed
50-69Needs workSignificant generalisation required
0-49Not suitableToo specific or contains secrets

Step 4: Generate Report

Output a structured report:

# Template Candidates Report

Generated: 2026-02-01

## Summary

| Category | Ready | Minor Edits | Needs Work | Excluded |
|----------|-------|-------------|------------|----------|
| scripts  | 3     | 2           | 1          | 4        |
| skills   | 5     | 3           | 2          | 1        |
| ...      |       |             |            |          |

## Ready for Sync (Score 90+)

### .claude/scripts/archive-orphan-attachments.py
- **Score:** 95
- **Status:** Ready
- **Notes:** Fully generic, no company references

### .claude/schemas/location.schema.json
- **Score:** 100
- **Status:** Ready
- **Notes:** Pure schema, no customisation needed

## Minor Edits Needed (Score 70-89)

### .claude/skills/sync-notion/SKILL.md
- **Score:** 75
- **Status:** Minor edits
- **Issues:**
  - Line 23: Contains hardcoded database ID
  - Line 45: References BA-specific workspace
- **Fix:** Replace with placeholder variables

## Excluded (Score <50)

### .claude/scripts/sync-ba-confluence.py
- **Score:** 20
- **Reason:** Entirely BA-specific integration
- **Action:** Do not sync

## Recommended Actions

1. Run `/template-sync` for 8 ready files
2. Edit 5 files with minor issues
3. Review 3 files needing significant work

Output Location

Save report to: .claude/reports/template-candidates-YYYY-MM-DD.md

Related Skills

  • /template-changelog - Generate changelog entries
  • /template-sync - Execute the sync

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Batch populate summary fields using content analysis

中文简介正在准备中。当前显示原文说明。

DavidROliverBA/ArchitectKB542026年3月2日 更新

auto-tag

免费

Batch auto-tag untagged notes using content analysis

中文简介正在准备中。当前显示原文说明。

DavidROliverBA/ArchitectKB542026年3月2日 更新

Generate C4 architecture diagrams from system notes

中文简介正在准备中。当前显示原文说明。

DavidROliverBA/ArchitectKB542026年3月2日 更新

canvas

免费

Create and edit Obsidian Canvas files for architecture visualization

中文简介正在准备中。当前显示原文说明。

DavidROliverBA/ArchitectKB542026年3月2日 更新

Check Outlook inbox and update daily note with message summary

中文简介正在准备中。当前显示原文说明。

DavidROliverBA/ArchitectKB542026年3月2日 更新

commit

免费

Stage and commit vault changes with UK English conventional commit messages

中文简介正在准备中。当前显示原文说明。

DavidROliverBA/ArchitectKB542026年3月2日 更新

查看 DavidROliverBA 的全部技能

报告此技能的问题