.claude/skills/tag-management/SKILL.md
# Tag Management Skill **Purpose:** Analyze, refactor, and maintain tags across the vault according to the official taxonomy. **Taxonomy Reference:** [[.claude/rules/tag-taxonomy.md]] --- ## Commands ### `/tag-analyze [scope]` Analyze tag quality and compliance. **Scopes:** - `/tag-analyze` - Current note (if applicable) - `/tag-analyze vault` - Full vault analysis - `/tag-analyze <path>` - Specific file or folder **Analysis Includes:** 1. Tag coverage (has tags vs no tags) 2. Hierarch
npx skillsauth add DavidROliverBA/ArchitectKB .claude/skills/tag-managementInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Purpose: Analyze, refactor, and maintain tags across the vault according to the official taxonomy.
Taxonomy Reference: [[.claude/rules/tag-taxonomy.md]]
/tag-analyze [scope]Analyze tag quality and compliance.
Scopes:
/tag-analyze - Current note (if applicable)/tag-analyze vault - Full vault analysis/tag-analyze <path> - Specific file or folderAnalysis Includes:
# in frontmatter)Output:
/tag-refactor [scope]Refactor tags to follow official taxonomy.
Scopes:
/tag-refactor - Current note/tag-refactor vault - Full vault refactor/tag-refactor <path> - Specific file or folder/tag-refactor --dry-run - Preview changes without applyingRefactoring Rules:
Case Normalization
ADR → type/adrMROSystem → technology/mroPlatformAWS → technology/awsInline Prefix Removal
#activity/architecture → activity/architecture#technology/aws → technology/awsFlat to Hierarchical
mroSystem → technology/mroPlatformaws → technology/awsdataPlatform → project/dataPlatformarchitecture → activity/architectureintegration → domain/integration or activity/integration (context-dependent)Template Variable Removal
{{3-5 relevant tags}}, {{project|lower}}, etc.Capitalized Prefixes
Project/ModernizationProject → project/modernizationTechnology/AWS → technology/awsSafety:
--dry-run first/tag-suggest <note>Suggest appropriate tags for a note based on content analysis.
Process:
type: field)Example:
/tag-suggest "ADR - AIIncidentProcessor - Bedrock.md"
Output:
# Current tags:
tags: [ADR, activity/architecture, AWS, Bedrock]
# Suggested tags (normalized):
tags: [
type/adr,
activity/architecture,
technology/aws,
technology/bedrock,
project/aiProcessor,
domain/cloud,
domain/security
]
# Changes:
- Remove: ADR (flat) → Add: type/adr
- Normalize: AWS → technology/aws
- Normalize: Bedrock → technology/bedrock
- Add missing: project/aiProcessor, domain/cloud, domain/security
/tag-find-violations [type]Find specific tag violations across the vault.
Types:
/tag-find-violations case - Case violations (uppercase, mixed case)/tag-find-violations inline - Inline # prefix in frontmatter/tag-find-violations flat - Orphan flat tags (no hierarchy)/tag-find-violations template - Template variable contamination/tag-find-violations missing - Notes missing required tags/tag-find-violations all - All violations (default)Output:
/tag-migrate <old> <new>Batch rename a tag across the entire vault.
Examples:
/tag-migrate "ADR" "type/adr"
/tag-migrate "AWS" "technology/aws"
/tag-migrate "project/modernization" "project/modernization-legacy"
Process:
<old> tag<new> tagSafety:
When implementing /tag-refactor:
Read note frontmatter
import re, yaml
with open(file_path) as f:
content = f.read()
# Extract frontmatter
match = re.match(r'^---\n(.*?)\n---', content, re.DOTALL)
frontmatter = yaml.safe_load(match.group(1))
tags = frontmatter.get('tags', [])
Apply refactoring rules
refactored_tags = []
for tag in tags:
# Remove inline prefix
tag = tag.lstrip('#')
# Apply migrations
tag = apply_migrations(tag, note_type, note_content)
# Normalize case
tag = tag.lower()
# Skip template variables
if '{{' in tag:
continue
refactored_tags.append(tag)
Contextual flat tag resolution
def apply_migrations(tag, note_type, content):
# Simple mappings
FLAT_TO_HIERARCHICAL = {
'adr': 'type/adr',
'mroSystem': 'technology/mroPlatform',
'aws': 'technology/aws',
'ai': 'technology/ai',
'dataPlatform': 'project/dataPlatform',
'modernization': 'project/modernization',
'myProject': 'project/myProject',
'moc': 'moc', # Approved special tag
'daily': 'daily', # Approved special tag
}
# Context-dependent
if tag == 'architecture':
# Check if it's an activity or domain
if 'decision' in content.lower() or note_type == 'Adr':
return 'activity/architecture'
else:
return 'domain/engineering'
if tag == 'integration':
if 'integration pattern' in content.lower():
return 'activity/integration'
else:
return 'domain/integration'
# Direct mapping
if tag in FLAT_TO_HIERARCHICAL:
return FLAT_TO_HIERARCHICAL[tag]
# Already hierarchical - normalize case only
return tag
Update frontmatter
frontmatter['tags'] = refactored_tags
# Rebuild YAML
new_frontmatter = yaml.dump(frontmatter, sort_keys=False)
# Replace in file
new_content = re.sub(
r'^---\n.*?\n---',
f'---\n{new_frontmatter}---',
content,
count=1,
flags=re.DOTALL
)
with open(file_path, 'w') as f:
f.write(new_content)
| Old Tag | New Tag | Context |
| --------------- | ------------------------- | --------------------- |
| ADR | type/adr | Always |
| MROSystem | technology/mroPlatform | Always |
| AWS | technology/aws | Always |
| AI | technology/ai | Always |
| MRO | technology/mro-software | Technology context |
| mroSystem | technology/mroPlatform | Always |
| aws | technology/aws | Always |
| dataPlatform | project/dataPlatform | Always |
| modernization | project/modernization | Always |
| myProject | project/myProject | Always |
| ecp | project/ecp | Always |
| architecture | activity/architecture | Activity context |
| architecture | domain/engineering | Domain context (rare) |
| integration | activity/integration | Activity context |
| integration | domain/integration | Domain context |
| security | domain/security | Always |
| governance | activity/governance | Always |
| documentation | activity/documentation | Always |
| Old Tag | New Tag |
| ----------------------------------------- | ------------------------ |
| Project/ModernizationProject | project/modernization |
| Project/LegacyEngineeringSystem-Futures | project/modernization |
| Technology/MROPlatform | technology/mroPlatform |
| Technology/AWS | technology/aws |
| Domain/Engineering-Systems | domain/engineering |
| Old Tag | New Tag |
| ------------------------ | ----------------------- |
| #activity/architecture | activity/architecture |
| #technology/aws | technology/aws |
| #project/myProject | project/myProject |
$ /tag-analyze
Analyzing: ADR - AIIncidentProcessor - Bedrock.md
Current tags: [ADR, activity/architecture, AWS, Bedrock, aiProcessor]
Issues Found:
✗ Flat tag: ADR (should be type/adr)
✗ Case violation: AWS (should be technology/aws)
✗ Flat tag: Bedrock (should be technology/bedrock)
✗ Flat tag: aiProcessor (should be project/aiProcessor)
✗ Missing minimum tags: Only 5 tags, ADRs need 4-7 with required hierarchies
Missing Required Hierarchies:
✗ No domain/ tag (required for ADRs)
Suggestions:
+ Add: type/adr (artifact type)
+ Add: technology/aws (platform)
+ Add: technology/bedrock (AI service)
+ Add: project/aiProcessor (project context)
+ Add: domain/cloud (business area)
+ Add: domain/security (security considerations)
Recommended tags:
tags: [type/adr, activity/architecture, technology/aws, technology/bedrock, project/aiProcessor, domain/cloud, domain/security]
$ /tag-refactor vault --dry-run
Vault Tag Refactoring Preview
==============================
Analyzing 2,535 markdown files...
Summary:
- 732 files with tags to refactor
- 1,148 files with no tags (skipped)
- 655 files with empty tags [] (skipped)
Changes Preview (first 10):
1. ADR - AIIncidentProcessor - Bedrock.md
- Remove: ADR → Add: type/adr
- Normalize: AWS → technology/aws
- Normalize: Bedrock → technology/bedrock
- Normalize: aiProcessor → project/aiProcessor
2. Project - MyDataIntegration.md
- Remove: Project → Add: project/myProject
- Normalize: SAP → technology/sap
- Add recommended: domain/data, domain/integration
3. System - DataPlatform.md
- Remove inline: #activity/architecture → activity/architecture
- Normalize: DataPlatform → type/system
- Add missing: criticality/critical
...
Total Changes:
- 124 case normalizations
- 67 flat to hierarchical conversions
- 10 inline prefix removals
- 11 template variable deletions
- 203 recommended tags to add
Run without --dry-run to apply changes.
Recommend: git commit current state first.
$ /tag-find-violations case
Finding case violations across vault...
Found 47 files with case violations:
1. ADR - SAP to AWS Connectivity.md
- ADR (should be lowercase in hierarchy)
- AWS (should be lowercase in hierarchy)
2. Project - ModernizationProject.md
- MROPlatform (should be lowercase)
- SAP (should be lowercase)
3. Meeting - 2026-01-10 ECP Core.md
- ECP (should be lowercase or hierarchical)
...
Summary:
- 24 files with uppercase flat tags
- 18 files with mixed case in hierarchies
- 5 files with capitalized prefixes (Project/, Technology/)
Run /tag-refactor to fix these violations.
$ /tag-migrate "ADR" "type/adr"
Migrating tag: ADR → type/adr
Found 41 files with tag "ADR":
1. ADR - API Gateway Selection.md
2. ADR - AIIncidentProcessor - AI Services.md
3. ADR - AIIncidentProcessor - Bedrock.md
...
Preview changes? [y/N]: y
Changes to apply:
- Replace "ADR" with "type/adr" in 41 files
- Preserve all other tags
- Update frontmatter YAML
Apply changes? [y/N]: y
✓ Updated 41 files successfully
✓ No errors
Summary:
- 41 files updated
- 0 files skipped
- 0 errors
/tag-analyze vault to monitor qualityThis skill works well with:
/quality-report - Includes tag analysis/vault-maintenance - Includes tag health checks/adr - Suggests tags when creating ADRs/project-status - Analyzes project tagsSources:
tools
--- context: fork --- # /youtube Save a YouTube video as both a Weblink (quick reference) and a detailed Page (full analysis). ## Usage ``` /youtube <url> /youtube <url> <optional title override> ``` ## Examples ``` /youtube https://www.youtube.com/watch?v=0TpON5T-Sw4 /youtube https://youtu.be/abc123 AWS re:Invent Keynote ``` ## Prerequisites This skill uses the MCP Docker YouTube tools: - `mcp__MCP_DOCKER__get_video_info` - Video metadata - `mcp__MCP_DOCKER__get_transcript` - Full trans
data-ai
Create and manage git worktrees for parallel agent sessions
testing
--- context: fork --- # /wipe Generate a context handoff summary, clear the session, and resume in a fresh conversation. Detects environment and provides automated (tmux) or manual workflow. ## Usage ``` /wipe /wipe quick # Minimal handoff, just essentials /wipe detailed # Comprehensive handoff with full context ``` ## Instructions When the user invokes `/wipe`: ### Phase 1: Detect Environment First, check the terminal environment: ```bash echo "Environment Detection:"
data-ai
--- context: fork --- # /weekly-summary Generate comprehensive weekly summary from daily notes, meetings, tasks, and project updates using parallel sub-agents. ## Usage ``` /weekly-summary /weekly-summary --last-week /weekly-summary --from 2026-01-01 --to 2026-01-07 /weekly-summary --output page # Create Page note instead of just outputting ``` ## Instructions This skill uses **5 parallel sub-agents** to gather data concurrently from different vault areas, then synthesizes a comprehensi