@theglitchking/hit-em-with-the-docs 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +46 -0
- package/.claude-plugin/plugin.json +114 -0
- package/LICENSE +21 -0
- package/MIGRATION.md +255 -0
- package/README.backup.md +714 -0
- package/README.md +869 -0
- package/action.yml +56 -0
- package/dist/action/action/index.d.ts +2 -0
- package/dist/action/action/index.d.ts.map +1 -0
- package/dist/action/cli/index.d.ts +3 -0
- package/dist/action/cli/index.d.ts.map +1 -0
- package/dist/action/core/audit/auditor.d.ts +43 -0
- package/dist/action/core/audit/auditor.d.ts.map +1 -0
- package/dist/action/core/audit/rules.d.ts +37 -0
- package/dist/action/core/audit/rules.d.ts.map +1 -0
- package/dist/action/core/discover/antipatterns.d.ts +24 -0
- package/dist/action/core/discover/antipatterns.d.ts.map +1 -0
- package/dist/action/core/discover/dependencies.d.ts +57 -0
- package/dist/action/core/discover/dependencies.d.ts.map +1 -0
- package/dist/action/core/discover/patterns.d.ts +38 -0
- package/dist/action/core/discover/patterns.d.ts.map +1 -0
- package/dist/action/core/discover/standards.d.ts +58 -0
- package/dist/action/core/discover/standards.d.ts.map +1 -0
- package/dist/action/core/domains/classifier.d.ts +41 -0
- package/dist/action/core/domains/classifier.d.ts.map +1 -0
- package/dist/action/core/domains/constants.d.ts +40 -0
- package/dist/action/core/domains/constants.d.ts.map +1 -0
- package/dist/action/core/domains/detector.d.ts +35 -0
- package/dist/action/core/domains/detector.d.ts.map +1 -0
- package/dist/action/core/integrate/integrator.d.ts +35 -0
- package/dist/action/core/integrate/integrator.d.ts.map +1 -0
- package/dist/action/core/links/checker.d.ts +64 -0
- package/dist/action/core/links/checker.d.ts.map +1 -0
- package/dist/action/core/links/tracker.d.ts +69 -0
- package/dist/action/core/links/tracker.d.ts.map +1 -0
- package/dist/action/core/maintain/orchestrator.d.ts +39 -0
- package/dist/action/core/maintain/orchestrator.d.ts.map +1 -0
- package/dist/action/core/metadata/generator.d.ts +26 -0
- package/dist/action/core/metadata/generator.d.ts.map +1 -0
- package/dist/action/core/metadata/schema.d.ts +201 -0
- package/dist/action/core/metadata/schema.d.ts.map +1 -0
- package/dist/action/core/metadata/sync.d.ts +36 -0
- package/dist/action/core/metadata/sync.d.ts.map +1 -0
- package/dist/action/generators/index-generator.d.ts +19 -0
- package/dist/action/generators/index-generator.d.ts.map +1 -0
- package/dist/action/generators/registry-generator.d.ts +11 -0
- package/dist/action/generators/registry-generator.d.ts.map +1 -0
- package/dist/action/generators/scaffold.d.ts +30 -0
- package/dist/action/generators/scaffold.d.ts.map +1 -0
- package/dist/action/generators/templates/document.d.ts +14 -0
- package/dist/action/generators/templates/document.d.ts.map +1 -0
- package/dist/action/generators/templates/domain-index.d.ts +6 -0
- package/dist/action/generators/templates/domain-index.d.ts.map +1 -0
- package/dist/action/generators/templates/domain-registry.d.ts +6 -0
- package/dist/action/generators/templates/domain-registry.d.ts.map +1 -0
- package/dist/action/index.d.ts +31 -0
- package/dist/action/index.d.ts.map +1 -0
- package/dist/action/index.js +17 -0
- package/dist/action/index.js.map +1 -0
- package/dist/action/package.json +3 -0
- package/dist/action/reports/audit-report.d.ts +15 -0
- package/dist/action/reports/audit-report.d.ts.map +1 -0
- package/dist/action/reports/health-report.d.ts +15 -0
- package/dist/action/reports/health-report.d.ts.map +1 -0
- package/dist/action/reports/link-report.d.ts +15 -0
- package/dist/action/reports/link-report.d.ts.map +1 -0
- package/dist/action/utils/frontmatter.d.ts +50 -0
- package/dist/action/utils/frontmatter.d.ts.map +1 -0
- package/dist/action/utils/glob.d.ts +63 -0
- package/dist/action/utils/glob.d.ts.map +1 -0
- package/dist/action/utils/logger.d.ts +42 -0
- package/dist/action/utils/logger.d.ts.map +1 -0
- package/dist/action/utils/markdown.d.ts +89 -0
- package/dist/action/utils/markdown.d.ts.map +1 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +287 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/core/audit/auditor.d.ts +43 -0
- package/dist/core/audit/auditor.d.ts.map +1 -0
- package/dist/core/audit/auditor.js +273 -0
- package/dist/core/audit/auditor.js.map +1 -0
- package/dist/core/audit/rules.d.ts +37 -0
- package/dist/core/audit/rules.d.ts.map +1 -0
- package/dist/core/audit/rules.js +223 -0
- package/dist/core/audit/rules.js.map +1 -0
- package/dist/core/discover/antipatterns.d.ts +24 -0
- package/dist/core/discover/antipatterns.d.ts.map +1 -0
- package/dist/core/discover/antipatterns.js +354 -0
- package/dist/core/discover/antipatterns.js.map +1 -0
- package/dist/core/discover/dependencies.d.ts +57 -0
- package/dist/core/discover/dependencies.d.ts.map +1 -0
- package/dist/core/discover/dependencies.js +311 -0
- package/dist/core/discover/dependencies.js.map +1 -0
- package/dist/core/discover/patterns.d.ts +38 -0
- package/dist/core/discover/patterns.d.ts.map +1 -0
- package/dist/core/discover/patterns.js +371 -0
- package/dist/core/discover/patterns.js.map +1 -0
- package/dist/core/discover/standards.d.ts +58 -0
- package/dist/core/discover/standards.d.ts.map +1 -0
- package/dist/core/discover/standards.js +359 -0
- package/dist/core/discover/standards.js.map +1 -0
- package/dist/core/domains/classifier.d.ts +41 -0
- package/dist/core/domains/classifier.d.ts.map +1 -0
- package/dist/core/domains/classifier.js +208 -0
- package/dist/core/domains/classifier.js.map +1 -0
- package/dist/core/domains/constants.d.ts +40 -0
- package/dist/core/domains/constants.d.ts.map +1 -0
- package/dist/core/domains/constants.js +252 -0
- package/dist/core/domains/constants.js.map +1 -0
- package/dist/core/domains/detector.d.ts +35 -0
- package/dist/core/domains/detector.d.ts.map +1 -0
- package/dist/core/domains/detector.js +176 -0
- package/dist/core/domains/detector.js.map +1 -0
- package/dist/core/integrate/integrator.d.ts +35 -0
- package/dist/core/integrate/integrator.d.ts.map +1 -0
- package/dist/core/integrate/integrator.js +216 -0
- package/dist/core/integrate/integrator.js.map +1 -0
- package/dist/core/links/checker.d.ts +64 -0
- package/dist/core/links/checker.d.ts.map +1 -0
- package/dist/core/links/checker.js +190 -0
- package/dist/core/links/checker.js.map +1 -0
- package/dist/core/links/tracker.d.ts +69 -0
- package/dist/core/links/tracker.d.ts.map +1 -0
- package/dist/core/links/tracker.js +184 -0
- package/dist/core/links/tracker.js.map +1 -0
- package/dist/core/maintain/orchestrator.d.ts +39 -0
- package/dist/core/maintain/orchestrator.d.ts.map +1 -0
- package/dist/core/maintain/orchestrator.js +372 -0
- package/dist/core/maintain/orchestrator.js.map +1 -0
- package/dist/core/metadata/generator.d.ts +26 -0
- package/dist/core/metadata/generator.d.ts.map +1 -0
- package/dist/core/metadata/generator.js +221 -0
- package/dist/core/metadata/generator.js.map +1 -0
- package/dist/core/metadata/schema.d.ts +201 -0
- package/dist/core/metadata/schema.d.ts.map +1 -0
- package/dist/core/metadata/schema.js +184 -0
- package/dist/core/metadata/schema.js.map +1 -0
- package/dist/core/metadata/sync.d.ts +36 -0
- package/dist/core/metadata/sync.d.ts.map +1 -0
- package/dist/core/metadata/sync.js +195 -0
- package/dist/core/metadata/sync.js.map +1 -0
- package/dist/generators/index-generator.d.ts +19 -0
- package/dist/generators/index-generator.d.ts.map +1 -0
- package/dist/generators/index-generator.js +191 -0
- package/dist/generators/index-generator.js.map +1 -0
- package/dist/generators/registry-generator.d.ts +11 -0
- package/dist/generators/registry-generator.d.ts.map +1 -0
- package/dist/generators/registry-generator.js +156 -0
- package/dist/generators/registry-generator.js.map +1 -0
- package/dist/generators/scaffold.d.ts +30 -0
- package/dist/generators/scaffold.d.ts.map +1 -0
- package/dist/generators/scaffold.js +213 -0
- package/dist/generators/scaffold.js.map +1 -0
- package/dist/generators/templates/document.d.ts +14 -0
- package/dist/generators/templates/document.d.ts.map +1 -0
- package/dist/generators/templates/document.js +305 -0
- package/dist/generators/templates/document.js.map +1 -0
- package/dist/generators/templates/domain-index.d.ts +6 -0
- package/dist/generators/templates/domain-index.d.ts.map +1 -0
- package/dist/generators/templates/domain-index.js +68 -0
- package/dist/generators/templates/domain-index.js.map +1 -0
- package/dist/generators/templates/domain-registry.d.ts +6 -0
- package/dist/generators/templates/domain-registry.d.ts.map +1 -0
- package/dist/generators/templates/domain-registry.js +59 -0
- package/dist/generators/templates/domain-registry.js.map +1 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +39 -0
- package/dist/index.js.map +1 -0
- package/dist/reports/audit-report.d.ts +15 -0
- package/dist/reports/audit-report.d.ts.map +1 -0
- package/dist/reports/audit-report.js +150 -0
- package/dist/reports/audit-report.js.map +1 -0
- package/dist/reports/health-report.d.ts +15 -0
- package/dist/reports/health-report.d.ts.map +1 -0
- package/dist/reports/health-report.js +175 -0
- package/dist/reports/health-report.js.map +1 -0
- package/dist/reports/link-report.d.ts +15 -0
- package/dist/reports/link-report.d.ts.map +1 -0
- package/dist/reports/link-report.js +165 -0
- package/dist/reports/link-report.js.map +1 -0
- package/dist/utils/frontmatter.d.ts +50 -0
- package/dist/utils/frontmatter.d.ts.map +1 -0
- package/dist/utils/frontmatter.js +93 -0
- package/dist/utils/frontmatter.js.map +1 -0
- package/dist/utils/glob.d.ts +63 -0
- package/dist/utils/glob.d.ts.map +1 -0
- package/dist/utils/glob.js +128 -0
- package/dist/utils/glob.js.map +1 -0
- package/dist/utils/logger.d.ts +42 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +118 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/markdown.d.ts +89 -0
- package/dist/utils/markdown.d.ts.map +1 -0
- package/dist/utils/markdown.js +192 -0
- package/dist/utils/markdown.js.map +1 -0
- package/package.json +100 -0
- package/templates/claude/CLAUDE.md +204 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
# Documentation System Plugin (hit-em-with-the-docs)
|
|
2
|
+
|
|
3
|
+
This project uses the hit-em-with-the-docs documentation system for hierarchical, self-managing documentation.
|
|
4
|
+
|
|
5
|
+
## Quick Reference
|
|
6
|
+
|
|
7
|
+
### Documentation Structure
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
.documentation/
|
|
11
|
+
├── INDEX.md # Navigation hub
|
|
12
|
+
├── REGISTRY.md # Quick reference
|
|
13
|
+
├── security/ # Security, auth, Vault, Keycloak
|
|
14
|
+
├── devops/ # Deployment, CI/CD, Docker
|
|
15
|
+
├── database/ # Schema, migrations, RLS
|
|
16
|
+
├── api/ # API endpoints, routes
|
|
17
|
+
├── standards/ # Coding standards
|
|
18
|
+
├── testing/ # Test strategies
|
|
19
|
+
├── architecture/ # System design
|
|
20
|
+
├── features/ # Feature guides
|
|
21
|
+
├── quickstart/ # Setup guides
|
|
22
|
+
├── procedures/ # Operational procedures
|
|
23
|
+
├── workflows/ # Process documentation
|
|
24
|
+
├── agents/ # AI agent docs
|
|
25
|
+
├── backups/ # Backup guides
|
|
26
|
+
├── troubleshooting/ # Debug guides
|
|
27
|
+
└── plans/ # Planning documents
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Commands
|
|
31
|
+
|
|
32
|
+
### /docs
|
|
33
|
+
|
|
34
|
+
Documentation commands for managing the hierarchical documentation system.
|
|
35
|
+
|
|
36
|
+
#### /docs load <domain>
|
|
37
|
+
|
|
38
|
+
Load documentation for a specific domain.
|
|
39
|
+
|
|
40
|
+
Usage: `/docs load security`
|
|
41
|
+
|
|
42
|
+
This loads:
|
|
43
|
+
1. Domain INDEX.md (complete listing)
|
|
44
|
+
2. Domain REGISTRY.md (quick reference)
|
|
45
|
+
3. Key documents summary
|
|
46
|
+
|
|
47
|
+
#### /docs list
|
|
48
|
+
|
|
49
|
+
List all 15 documentation domains with descriptions.
|
|
50
|
+
|
|
51
|
+
#### /docs search <query>
|
|
52
|
+
|
|
53
|
+
Search across all documentation for a query term.
|
|
54
|
+
|
|
55
|
+
Usage: `/docs search "authentication"`
|
|
56
|
+
|
|
57
|
+
#### /docs stats
|
|
58
|
+
|
|
59
|
+
Show documentation health statistics including:
|
|
60
|
+
- Total documents per domain
|
|
61
|
+
- Link health
|
|
62
|
+
- Metadata compliance
|
|
63
|
+
- Recent updates
|
|
64
|
+
|
|
65
|
+
#### /docs maintain
|
|
66
|
+
|
|
67
|
+
Run documentation maintenance:
|
|
68
|
+
```bash
|
|
69
|
+
npx hit-em-with-the-docs maintain --quick
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
#### /docs integrate <file>
|
|
73
|
+
|
|
74
|
+
Integrate a document into the system:
|
|
75
|
+
```bash
|
|
76
|
+
npx hit-em-with-the-docs integrate ./docs/new-guide.md
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### /discover
|
|
80
|
+
|
|
81
|
+
Pattern discovery commands for extracting patterns from the codebase.
|
|
82
|
+
|
|
83
|
+
#### /discover patterns
|
|
84
|
+
|
|
85
|
+
Discover coding patterns in the codebase:
|
|
86
|
+
```bash
|
|
87
|
+
npx hit-em-with-the-docs discover patterns
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Detects: Service layer, Repository pattern, Factory pattern, Error handling, etc.
|
|
91
|
+
|
|
92
|
+
#### /discover anti-patterns
|
|
93
|
+
|
|
94
|
+
Detect anti-patterns and code smells:
|
|
95
|
+
```bash
|
|
96
|
+
npx hit-em-with-the-docs discover anti-patterns
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Detects: Hardcoded credentials, SQL injection risks, console.log, any types, etc.
|
|
100
|
+
|
|
101
|
+
#### /discover standards
|
|
102
|
+
|
|
103
|
+
Extract implicit coding standards:
|
|
104
|
+
```bash
|
|
105
|
+
npx hit-em-with-the-docs discover standards
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Extracts: Naming conventions, file organization, code style, documentation coverage.
|
|
109
|
+
|
|
110
|
+
#### /discover dependencies
|
|
111
|
+
|
|
112
|
+
Analyze project dependencies:
|
|
113
|
+
```bash
|
|
114
|
+
npx hit-em-with-the-docs discover dependencies
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
Analyzes: Package versions, circular dependencies, unused dependencies, security issues.
|
|
118
|
+
|
|
119
|
+
## Metadata Schema
|
|
120
|
+
|
|
121
|
+
Every documentation file should have this YAML frontmatter:
|
|
122
|
+
|
|
123
|
+
```yaml
|
|
124
|
+
---
|
|
125
|
+
# Required fields
|
|
126
|
+
title: "Document Title"
|
|
127
|
+
tier: guide|standard|example|reference|admin
|
|
128
|
+
domains: [primary-domain]
|
|
129
|
+
status: draft|active|deprecated|archived
|
|
130
|
+
last_updated: 'YYYY-MM-DD'
|
|
131
|
+
version: '1.0.0'
|
|
132
|
+
|
|
133
|
+
# Optional fields
|
|
134
|
+
audience: [all|developers|devops|admin]
|
|
135
|
+
tags: [tag1, tag2]
|
|
136
|
+
purpose: "One-sentence purpose"
|
|
137
|
+
related_docs:
|
|
138
|
+
- path/to/related.md
|
|
139
|
+
author: "Name"
|
|
140
|
+
---
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## Tiers
|
|
144
|
+
|
|
145
|
+
| Tier | Description | Size |
|
|
146
|
+
|------|-------------|------|
|
|
147
|
+
| guide | Step-by-step how-to guides | 15-30 KB |
|
|
148
|
+
| standard | Coding standards and conventions | 5-15 KB |
|
|
149
|
+
| example | Code examples and templates | 3-10 KB |
|
|
150
|
+
| reference | Comprehensive references | 30+ KB |
|
|
151
|
+
| admin | Administrative/operational docs | 10-20 KB |
|
|
152
|
+
|
|
153
|
+
## Workflow Guidelines
|
|
154
|
+
|
|
155
|
+
### Adding New Documentation
|
|
156
|
+
|
|
157
|
+
1. Determine the appropriate domain
|
|
158
|
+
2. Create file with kebab-case naming: `topic-name-type.md`
|
|
159
|
+
3. Add required frontmatter
|
|
160
|
+
4. Write content following tier template
|
|
161
|
+
5. Run: `npx hit-em-with-the-docs integrate <file>`
|
|
162
|
+
|
|
163
|
+
### Weekly Maintenance
|
|
164
|
+
|
|
165
|
+
Run every Friday:
|
|
166
|
+
```bash
|
|
167
|
+
npx hit-em-with-the-docs maintain
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
This syncs metadata, checks links, and audits compliance.
|
|
171
|
+
|
|
172
|
+
### Before Committing Documentation
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
# Quick check
|
|
176
|
+
npx hit-em-with-the-docs audit
|
|
177
|
+
|
|
178
|
+
# Fix issues
|
|
179
|
+
npx hit-em-with-the-docs metadata-sync --fix
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
## File Naming Convention
|
|
183
|
+
|
|
184
|
+
- Use kebab-case: `api-design-standards.md`
|
|
185
|
+
- Include type suffix when appropriate: `-guide.md`, `-standard.md`, `-procedure.md`
|
|
186
|
+
- Be specific: `keycloak-integration-guide.md` not `auth.md`
|
|
187
|
+
|
|
188
|
+
## Related Commands
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
# Initialize documentation structure
|
|
192
|
+
npx hit-em-with-the-docs init
|
|
193
|
+
|
|
194
|
+
# Generate reports
|
|
195
|
+
npx hit-em-with-the-docs report health
|
|
196
|
+
npx hit-em-with-the-docs report audit
|
|
197
|
+
npx hit-em-with-the-docs report links
|
|
198
|
+
|
|
199
|
+
# Check links
|
|
200
|
+
npx hit-em-with-the-docs link-check
|
|
201
|
+
|
|
202
|
+
# Discover patterns
|
|
203
|
+
npx hit-em-with-the-docs discover patterns --language typescript
|
|
204
|
+
```
|