Tags - Complete Reference & Index
This document provides comprehensive tag documentation including guidelines, best practices, and a dynamic index of all tags used throughout the Claude Code Knowledge Base.
π― Tag Philosophy & Guidelines
Core Principles
- Always include claude-code - This is the primary identifier for all Claude Code documentation
- Use specific feature tags - Add relevant feature tags (#hooks, typescript, sdk, subagents)
- Specify difficulty level - Include beginner, intermediate, or advanced
- Identify content type - Add type tags like tutorial, reference, workshop
- Add quality/topic tags - Include relevant tags like best-practices, troubleshooting, security
Tag Consolidation Rules
β Standard Tag Usage
- Always use claude-code as the primary identifier
- Use feature-specific tags separately rather than compound tags
- Maintain consistency across all documentation files
- Use lowercase for all tags
- Use singular forms (e.g., workshop not workshops)
β Deprecated Tags (Do Not Use)
The following compound tags have been consolidated:
claude-code-typescript-sdkβ Use#typescriptand#sdkclaude-code-hooksβ Use#hooksclaude-code-subagentsβ Use#subagentstypescript-sdkβ Use#typescriptand#sdkhooks-troubleshooting-and-debugging-guideβ Use#hooks,#troubleshooting, and#guide
β οΈ Common Mistakes to Avoid
- Donβt create compound feature tags
- Donβt use hex color codes as tags
- Donβt create overly specific single-use tags
- Donβt use file names as tags
- Donβt capitalize tags inconsistently
- Donβt create redundant variations
π Dynamic Tag Analytics
π Tag Statistics
TABLE WITHOUT ID
"Total Unique Tags" AS Metric,
length(unique(flatten(pages().file.tags))) AS Count
UNION ALL
TABLE WITHOUT ID
"Tagged Pages" AS Metric,
length(pages() WHERE file.tags) AS Count
UNION ALL
TABLE WITHOUT ID
"Average Tags per Page" AS Metric,
round(sum(pages().file.tags.length) / length(pages() WHERE file.tags), 2) AS Countπ₯ Most Used Tags
TABLE WITHOUT ID
tag AS "Tag",
length(pages() WHERE contains(file.tags, tag)) AS "Usage Count"
FROM ""
FLATTEN file.tags AS tag
GROUP BY tag
SORT length(pages() WHERE contains(file.tags, tag)) DESC
LIMIT 20π Tag Categories
π¨ Core Feature Tags
- claude-code - Primary identifier for all Claude Code content
- hooks - Claude Code hooks system and event handling
- typescript - TypeScript-specific implementations
- sdk - Software Development Kit documentation
- subagents - Subagent patterns and usage
- containers - Docker, Kubernetes, and deployment
- docker - Docker-specific configurations
- kubernetes - Kubernetes deployment strategies
- devcontainer - VS Code devcontainer configurations
- ai-orchestration - Multi-model AI orchestration
- multi-model - Integration with multiple AI models
- gemini - Google Gemini model integration
- claude-md - CLAUDE.md configuration patterns
- mcp - Model Context Protocol integration
- llm - Large Language Model integration patterns
- context-window - Large context window management
π Content Type Tags
- tutorial - Step-by-step guides
- reference - API and technical references
- guide - Comprehensive topic guides
- workshop - Training materials
- exercises - Practice problems
- patterns - Design patterns
- documentation - General docs
- examples - Code examples
- moc - Maps of Content
- index - Index documents
- overview - High-level explanations
- instructions - Configuration and setup guides
- research - Research notes
- journal - Development journals
- daily - Daily notes and logs
- visual - Diagrams and visuals
- master-index - Master index documents
- training - Training curriculum
π Difficulty Level Tags
- beginner - Entry-level content
- intermediate - Standard knowledge required
- advanced - Expert-level content
π οΈ Technical & Quality Tags
- best-practices - Recommended approaches
- security - Security considerations
- troubleshooting - Problem-solving guides
- optimization - Performance tips
- error-handling - Exception management
- debugging - Debug techniques
- testing - Test strategies
- integration - Service integration
- api - API-related content
- cli - Command-line topics
- automation - Automation patterns
- validation - Input validation
- safety - Safe coding practices
- performance - Performance optimization
- streaming - Real-time patterns
- common-issues - Common problems
- large-context - Large context optimization
- diagnostics - System diagnostics
- production - Production deployment
- resilience - Building resilient systems
- parallel-processing - Concurrent execution
- multi-agent - Multi-agent collaboration
- authentication - Auth patterns
- third-party - Third-party integrations
- services - Service architecture
- external-tools - External tool integration
ποΈ Organization Tags
- meta - Meta documentation
- architecture - System design
- infrastructure - DevOps topics
- code-organization - Code structure
- design-patterns - Software patterns
- deployment - Deployment strategies
- configuration - Configuration docs
- getting-started - Initial setup
- hands-on - Practical exercises
- solutions - Problem solutions
- implementation - Implementation details
- real-world - Real-world applications
- tools - Tool integration
π Tag Usage by Section
π Documentation Tags
TABLE WITHOUT ID
link(file.name, file.name) AS "Documentation",
join(file.tags, ", ") AS "Tags"
WHERE contains(file.path, "docs/") AND file.tags
SORT file.name ASC
LIMIT 10π― Pattern Tags
TABLE WITHOUT ID
link(file.name, file.name) AS "Pattern",
join(file.tags, ", ") AS "Tags"
WHERE contains(file.path, "patterns/") AND file.tags
SORT file.name ASC
LIMIT 10π¬ Experiment Tags
TABLE WITHOUT ID
link(file.name, file.name) AS "Experiment",
join(file.tags, ", ") AS "Tags"
WHERE contains(file.path, "experiments/") AND file.tags
SORT file.name ASC
LIMIT 10π Recently Tagged Content
TABLE WITHOUT ID
link(file.name, file.name) AS "Page",
file.tags AS "Tags",
dateformat(file.mtime, "yyyy-MM-dd HH:mm") AS "Modified"
WHERE file.tags AND file.mtime > date(today) - dur(7 days)
SORT file.mtime DESC
LIMIT 10π Tag Relationships
TABLE WITHOUT ID
tag1 AS "Tag",
tag2 AS "Related Tag",
count AS "Co-occurrences"
FROM ""
WHERE file.tags
FLATTEN file.tags AS tag1
FLATTEN file.tags AS tag2
WHERE tag1 < tag2
GROUP BY tag1 + "|" + tag2
LET count = length(pages() WHERE contains(file.tags, tag1) AND contains(file.tags, tag2))
WHERE count > 1
SORT count DESC
LIMIT 15π Untagged Pages
TABLE WITHOUT ID
link(file.name, file.name) AS "Untagged Page",
file.folder AS "Folder",
dateformat(file.mtime, "yyyy-MM-dd") AS "Modified"
WHERE !file.tags OR length(file.tags) = 0
SORT file.folder ASC, file.name ASC
LIMIT 20π·οΈ Tag Combination Examples
Effective Tag Combinations
- Tutorial for beginners on hooks:
#claude-code #hooks #beginner #tutorial - Advanced TypeScript patterns:
#claude-code #typescript #advanced #patterns #best-practices - SDK troubleshooting guide:
#claude-code #sdk #troubleshooting #guide - Workshop on subagents:
#claude-code #subagents #workshop #exercises - Container deployment guide:
#claude-code #containers #docker #deployment #guide - AI orchestration patterns:
#claude-code #ai-orchestration #multi-model #patterns - Gemini integration workshop:
#claude-code #gemini #integration #workshop - CLAUDE.md configuration:
#claude-code #claude-md #configuration #best-practices
π Quick Search Queries
By Feature
- Hooks documentation:
tag:#hooks - TypeScript SDK:
tag:#typescript AND tag:#sdk - Container deployment:
tag:#containers OR tag:#docker OR tag:#kubernetes - AI orchestration:
tag:#ai-orchestration OR tag:#multi-model - Gemini integration:
tag:#gemini AND tag:#integration - CLAUDE.md patterns:
tag:#claude-md AND tag:#patterns
By Level
- Beginner tutorials:
tag:#beginner AND tag:#tutorial - Advanced patterns:
tag:#advanced AND tag:#patterns - Intermediate workshops:
tag:#intermediate AND tag:#workshop
By Quality Aspect
- Security best practices:
tag:#security AND tag:#best-practices - Performance optimization:
tag:#performance AND tag:#optimization - Error handling guides:
tag:#error-handling AND tag:#troubleshooting
Combined Queries
- Beginner hooks tutorials:
tag:#hooks AND tag:#beginner AND tag:#tutorial - Advanced TypeScript patterns:
tag:#typescript AND tag:#advanced AND tag:#patterns - SDK troubleshooting:
tag:#sdk AND tag:#troubleshooting
π Tag Maintenance Checklist
When creating or updating documentation:
- β
Include
#claude-codeas the primary tag - β Add at least one feature tag
- β Specify difficulty level if applicable
- β Include content type tag
- β Add relevant quality/topic tags
- β Use lowercase only
- β Avoid compound tags
- β Check for existing similar tags
π¨ Custom Tag Groups
Research Tags
LIST
WHERE contains(file.tags, "research") OR
contains(file.tags, "exploration") OR
contains(file.tags, "investigation")Status Tags
LIST
WHERE contains(file.tags, "draft") OR
contains(file.tags, "review") OR
contains(file.tags, "complete")Priority Tags
LIST
WHERE contains(file.tags, "high-priority") OR
contains(file.tags, "urgent") OR
contains(file.tags, "important")π·οΈ Pages with Multiple Tags
TABLE WITHOUT ID
link(file.name, file.name) AS "Page",
length(file.tags) AS "Tag Count",
join(file.tags, ", ") AS "Tags"
WHERE length(file.tags) > 3
SORT length(file.tags) DESCπ Related Resources
- Knowledge Base Meta - Knowledge base organization
- Project Organization - How this knowledge base is structured
- Dataview Query Examples - More dynamic queries
- Daily Notes MOC - Research and development logs
This tag reference automatically updates to reflect all tags in the knowledge base. Consistent tagging improves navigation and content discovery.