faf-cli 6.0.13 → 6.0.15

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.
@@ -0,0 +1,384 @@
1
+ ---
2
+ name: faf-expert
3
+ description: Expert in .faf (Foundational AI-context Format) files for persistent project context. Use when working with .faf files, project DNA, CLAUDE.md bi-sync, faf-cli commands, MCP server configuration, or AI-readiness scoring (0-100%). Updated for v2.8.0 Tool Visibility System.
4
+ ---
5
+
6
+ # FAF Expert - Project DNA Specialist
7
+
8
+ ## What is .faf?
9
+
10
+ `.faf` is the universal format for persistent AI project context - "Project DNA ✨ for ANY AI".
11
+
12
+ **Core Concepts:**
13
+ - **Foundational AI-context Format** - YAML-based project context file
14
+ - **Persistent Context** - Survives across sessions, tools, and AI assistants
15
+ - **Universal** - Works with Claude, ChatGPT, Gemini, Cursor, any AI
16
+ - **Measurable** - Championship scoring system (0-100% AI-readiness)
17
+ - **Official Anthropic MCP Steward** - PR #2759 MERGED
18
+
19
+ ## When to Use This Skill
20
+
21
+ Activate this skill when:
22
+ - Creating or updating `.faf` files
23
+ - Working with `CLAUDE.md` files
24
+ - Running `faf` CLI commands (init, auto, score, formats, bi-sync)
25
+ - Scoring project AI-readiness
26
+ - Setting up MCP server (claude-faf-mcp)
27
+ - Configuring tool visibility (v2.8.0+)
28
+ - Discussing project context or documentation
29
+
30
+ ## Key Files
31
+
32
+ - **`.faf`** - YAML format, machine-readable project context
33
+ - **`CLAUDE.md`** - Markdown format, human-readable project guide
34
+ - **Bi-Sync** - `.faf ↔ CLAUDE.md` kept in sync automatically
35
+ - **`project.faf`** - v1.2.0 standard naming
36
+
37
+ ## Common Commands
38
+
39
+ ### faf-cli Commands
40
+ ```bash
41
+ faf init # Create .faf from project
42
+ faf auto # Auto-detect stack and create .faf
43
+ faf score # Rate AI-readiness (0-100%)
44
+ faf formats # List 153+ supported formats
45
+ faf bi-sync # Sync .faf ↔ CLAUDE.md
46
+ faf status # Check project AI-readiness
47
+ faf validate # Validate .faf structure
48
+ faf doctor # Diagnose and fix issues
49
+ faf migrate # Migrate to latest format
50
+ ```
51
+
52
+ ### MCP Tools (claude-faf-mcp v2.8.0+)
53
+
54
+ **v2.8.0 introduces Tool Visibility System:**
55
+ - **21 Core Tools** (default) - Essential workflow
56
+ - **51 Total Tools** (opt-in) - All features
57
+
58
+ **Configuration:**
59
+ ```json
60
+ {
61
+ "mcpServers": {
62
+ "faf": {
63
+ "command": "npx",
64
+ "args": ["-y", "claude-faf-mcp@2.8.0"],
65
+ "env": {
66
+ "FAF_MCP_SHOW_ADVANCED": "false"
67
+ }
68
+ }
69
+ }
70
+ }
71
+ ```
72
+
73
+ **Core Tools (21):**
74
+ - Essential Workflow: `faf`, `faf_auto`, `faf_init`, `faf_innit`, `faf_status`
75
+ - Quality: `faf_score`, `faf_validate`, `faf_doctor`, `faf_audit`
76
+ - Intelligence: `faf_formats`, `faf_stacks`, `faf_skills`, `faf_install_skill`
77
+ - Sync: `faf_sync`, `faf_bi_sync`, `faf_update`, `faf_migrate`
78
+ - AI: `faf_chat`, `faf_enhance`
79
+ - Help: `faf_index`, `faf_faq`, `faf_about`
80
+
81
+ **Advanced Tools (30+):**
82
+ Set `FAF_MCP_SHOW_ADVANCED: "true"` to enable:
83
+ - Display variants: `faf_display`, `faf_show`, `faf_check`
84
+ - Trust system: `faf_trust`, `faf_trust_confidence`, `faf_trust_garage`
85
+ - File operations: `faf_read`, `faf_write`, `faf_list`, `faf_exists`, etc.
86
+ - DNA tracking: `faf_dna`, `faf_log`, `faf_auth`, `faf_recover`
87
+ - Utilities: `faf_choose`, `faf_clear`, `faf_share`, `faf_credit`
88
+
89
+ ## AI-Readiness Scoring
90
+
91
+ **Championship Tiers:**
92
+ - 🏆 **95-100%** - Championship (Gold)
93
+ - 🥇 **85-94%** - Podium (Silver)
94
+ - 🥈 **70-84%** - Points (Bronze)
95
+ - 🥉 **55-69%** - Midfield
96
+ - 🟢 **40-54%** - Backmarker
97
+ - 🟡 **25-39%** - Struggling
98
+ - 🔴 **10-24%** - Critical
99
+ - 🤍 **0-9%** - DNF (Did Not Finish)
100
+
101
+ **Target:** 85%+ for production projects
102
+
103
+ ## .faf File Structure
104
+
105
+ ```yaml
106
+ # Basic .faf structure
107
+ format: typescript-nextjs
108
+ language: typescript
109
+ framework: nextjs
110
+ version: "14.0.0"
111
+
112
+ structure:
113
+ - src/
114
+ - components/
115
+ - pages/
116
+
117
+ dependencies:
118
+ react: "^18.0.0"
119
+ next: "^14.0.0"
120
+
121
+ testing: jest
122
+ deployment: vercel
123
+
124
+ # v1.2.0+ additions
125
+ project_name: "My Project"
126
+ ai_readiness_score: 87
127
+ ```
128
+
129
+ ## Best Practices
130
+
131
+ 1. **Start with `faf auto`** - Let it detect your stack
132
+ 2. **Review and refine** - Auto-detection is 85% accurate, tweak as needed
133
+ 3. **Run `faf score`** - Target 85%+ for championship context
134
+ 4. **Use `faf bi-sync`** - Keep .faf and CLAUDE.md in sync
135
+ 5. **Update regularly** - As project evolves, update context
136
+ 6. **Use core tools first** - Advanced tools are opt-in for specific needs
137
+
138
+ ## The FAF Family
139
+
140
+ **6 Championship Integrations:**
141
+ - React (20M/week npm downloads) 🏆
142
+ - TypeScript (40M/week) 🏆
143
+ - Next.js (5M/week) 🏆
144
+ - Vite (9M/week) 🥇
145
+ - Svelte (400K/week) 🥇
146
+ - n8n (401K/week - TURBO only) 🥇
147
+
148
+ ## Installation
149
+
150
+ ### faf-cli (npm)
151
+ ```bash
152
+ npm install -g faf-cli
153
+ ```
154
+
155
+ ### faf-cli (Homebrew)
156
+ ```bash
157
+ brew install faf-cli
158
+ ```
159
+
160
+ ### claude-faf-mcp (MCP Server)
161
+ Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
162
+ ```json
163
+ {
164
+ "mcpServers": {
165
+ "faf": {
166
+ "command": "npx",
167
+ "args": ["-y", "claude-faf-mcp@latest"]
168
+ }
169
+ }
170
+ }
171
+ ```
172
+
173
+ **For advanced tools:**
174
+ ```json
175
+ {
176
+ "mcpServers": {
177
+ "faf": {
178
+ "command": "npx",
179
+ "args": ["-y", "claude-faf-mcp@latest"],
180
+ "env": {
181
+ "FAF_MCP_SHOW_ADVANCED": "true"
182
+ }
183
+ }
184
+ }
185
+ }
186
+ ```
187
+
188
+ ## v2.8.0 Tool Visibility System
189
+
190
+ **Problem Solved:** Reduced cognitive load from 51 tools to 21 core tools.
191
+
192
+ **How It Works:**
193
+ - **Default:** Shows 21 essential tools
194
+ - **Opt-in:** Enable all 51 tools via environment variable
195
+ - **Smart Filtering:** Tools categorized by purpose
196
+ - **Backward Compatible:** Existing setups continue working
197
+
198
+ **Categories:**
199
+ - `workflow` - Essential commands
200
+ - `quality` - Scoring and validation
201
+ - `intelligence` - Format/stack detection
202
+ - `sync` - Context synchronization
203
+ - `ai` - AI enhancement features
204
+ - `help` - Documentation
205
+ - `trust` - Trust validation
206
+ - `file` - File operations
207
+ - `utility` - Misc tools
208
+
209
+ **Configuration Priority:**
210
+ 1. Environment variable (`FAF_MCP_SHOW_ADVANCED`)
211
+ 2. Config file (`~/.fafrc`)
212
+ 3. Default (core only)
213
+
214
+ ## Philosophy
215
+
216
+ **The Noodle Philosophy 🍜**
217
+ - YAML noodles for AI (machine-readable)
218
+ - Converts to markdown/TXT for humans (human-readable)
219
+ - Interconnected context, not flat data
220
+
221
+ **Format-First**
222
+ - The format is the foundation
223
+ - Without .faf, there is no universal context
224
+ - Format-driven architecture
225
+
226
+ **Official Stewardship**
227
+ - Anthropic-approved MCP server (PR #2759 MERGED)
228
+ - Account Managers for all things .FAF in Anthropic ecosystem
229
+ - Governance responsibility for format specification
230
+
231
+ ## Brand Values
232
+
233
+ - **NO BS ZONE** - Only real stats, verified claims
234
+ - **Championship Standards** - <50ms performance, 1,000+ tests
235
+ - **Free Forever** - MIT license, open source
236
+ - **Trust is Everything** - Built on credibility
237
+ - **Professional, Boring, Trusted** - F1-grade engineering
238
+
239
+ ## Stats (Real, Verified - November 2025)
240
+
241
+ - **13,000+ total downloads** (CLI + MCP combined)
242
+ - **6,700+ MCP downloads** (weekly: 800+)
243
+ - **6,500+ CLI downloads**
244
+ - **79 tests passing** (57 MCP + 22 visibility)
245
+ - **153+ formats validated** (TURBO-CAT engine)
246
+ - **<10ms tool filtering** (5x better than 50ms target)
247
+ - **Zero regressions** in v2.8.0 release
248
+ - **WJTTC Gold Certified** - F1-inspired testing standards
249
+ - **Anthropic-approved** MCP server (Official steward)
250
+
251
+ ## Version History
252
+
253
+ - **v3.2.7** - faf-cli latest
254
+ - **v3.3.7** - claude-faf-mcp latest (TYPE_DEFINITIONS parity)
255
+ - **v1.2.0** - faf-mcp universal
256
+
257
+ ## Resources
258
+
259
+ - **Website:** https://faf.one
260
+ - **CLI npm:** https://npmjs.com/package/faf-cli
261
+ - **MCP npm:** https://npmjs.com/package/claude-faf-mcp
262
+ - **GitHub:** https://github.com/Wolfe-Jam/faf-cli
263
+ - **Homebrew:** `brew install faf-cli`
264
+ - **Chrome Extension:** Chrome Web Store (Google approved)
265
+
266
+ ## Testing Standards
267
+
268
+ **WJTTC (WolfeJam Technical & Testing Center)**
269
+ - F1-Inspired testing methodology
270
+ - 3 Tiers: Brake Systems, Engine Systems, Aerodynamics
271
+ - Philosophy: "We break things so others never have to know they were broken"
272
+ - All tests reported and documented
273
+ - Gold certification for production releases
274
+
275
+ ## Troubleshooting
276
+
277
+ ### MCP Server Not Loading
278
+ ```bash
279
+ # Check logs
280
+ tail -f ~/Library/Logs/Claude/mcp-server-claude-faf-mcp.log
281
+
282
+ # Verify config
283
+ cat ~/Library/Application\ Support/Claude/claude_desktop_config.json
284
+
285
+ # Test locally
286
+ node /path/to/claude-faf-mcp/dist/src/index.js
287
+ ```
288
+
289
+ ### Tool Count Verification
290
+ ```bash
291
+ # Should show 21 core tools (default)
292
+ # Or 51 tools (advanced mode)
293
+ # Check console output when MCP loads
294
+ ```
295
+
296
+ ### CLI Not Found
297
+ ```bash
298
+ # Install globally
299
+ npm install -g faf-cli
300
+
301
+ # Or via Homebrew
302
+ brew install faf-cli
303
+
304
+ # Verify installation
305
+ faf --version
306
+ ```
307
+
308
+ ## Advanced Usage
309
+
310
+ ### Custom Config File
311
+ Create `~/.fafrc`:
312
+ ```json
313
+ {
314
+ "showAdvanced": true
315
+ }
316
+ ```
317
+
318
+ Or key=value format:
319
+ ```
320
+ FAF_SHOW_ADVANCED=true
321
+ ```
322
+
323
+ ### Local Development
324
+ ```bash
325
+ # Use local build
326
+ {
327
+ "mcpServers": {
328
+ "faf": {
329
+ "command": "node",
330
+ "args": ["/path/to/claude-faf-mcp/dist/src/index.js"],
331
+ "env": {
332
+ "FAF_MCP_SHOW_ADVANCED": "false"
333
+ }
334
+ }
335
+ }
336
+ }
337
+ ```
338
+
339
+ ---
340
+
341
+ ## Skill Control
342
+
343
+ **To disable this skill temporarily:**
344
+ ```bash
345
+ # Rename directory to disable
346
+ mv ~/.claude/skills/faf-expert ~/.claude/skills/faf-expert.disabled
347
+ ```
348
+
349
+ **To re-enable:**
350
+ ```bash
351
+ # Rename back to enable
352
+ mv ~/.claude/skills/faf-expert.disabled ~/.claude/skills/faf-expert
353
+ ```
354
+
355
+ **Or just delete the directory to remove completely.**
356
+
357
+ ---
358
+
359
+ ## How to Get This Skill
360
+
361
+ **Option 1: Manual Installation**
362
+ 1. Copy this SKILL.md file
363
+ 2. Create directory: `~/.claude/skills/faf-expert/`
364
+ 3. Save as: `~/.claude/skills/faf-expert/SKILL.md`
365
+ 4. Restart Claude Code
366
+
367
+ **Option 2: Git Clone (if published)**
368
+ ```bash
369
+ # Coming soon - published skills repository
370
+ git clone [skills-repo] ~/.claude/skills/faf-expert
371
+ ```
372
+
373
+ **Option 3: From FAF CLI (future)**
374
+ ```bash
375
+ # Planned feature
376
+ faf skill install faf-expert
377
+ ```
378
+
379
+ ---
380
+
381
+ *Made with 🧡 by wolfejam.dev*
382
+ *Official Anthropic MCP Steward*
383
+ *Championship Edition v2.8.0* 🏎️✨
384
+ *IANA-Registered Format: application/vnd.faf+yaml (Oct 31, 2025)*