Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

FABRIC within PAI framework cannot be updated as documented

Open bnkath2o opened this issue 1 year ago • 3 comments

Fabric Update Architecture Analysis

Date: 2025-11-18
Status: Architecture Analysis Complete
Priority: High - Blocks Fabric pattern updates


Executive Summary

The Fabric skill in Daniel Miessler's PAI contains an architectural inconsistency between documentation and implementation that prevents pattern updates. The SKILL.md instructs users to run git pull in fabric-repo/, but this directory is not a git repository - it's a
static snapshot committed directly into PAI.

Impact:

  • ❌ Cannot update Fabric patterns (stuck at 228 patterns from Oct 2024)
  • ❌ Missing latest Fabric features and improvements
  • ❌ Breaking changes in Fabric may cause compatibility issues

Git History:

  • Commit 3cf5732 (2025-10-17): "Add Fabric skill with intelligent pattern selection (v0.3.2)"
    • Commit message: "Users can update patterns: cd fabric-repo && git pull"
    • Reality: Committed 96MB of static Fabric source code
    • No .git directory in fabric-repo/
    • No git submodule configuration

SKILL.md Instructions (Lines 272-280):

# To update patterns:                                                        
cd ${PAI_DIR}/skills/fabric/fabric-repo                                      
git pull origin main                                                         

Problem: This command fails because fabric-repo/ is not a git
repository.

Locations:

1.3 Fabric Upstream Repository

GitHub: https://github.com/danielmiessler/Fabric
Latest Release: v1.4.328 (2025-11-18)
PAI Snapshot Date: ~2025-10-27 (from commit date)
Pattern Count Gap: 228 (PAI) vs. Unknown (upstream - likely 240+)

Recent Critical Changes:

  • v1.4.328 (Nov 18): Documentation for --raw flag behavior
  • v1.4.327 (Nov 16): BREAKING - Removed get_youtube_rss pattern
  • v1.4.326 (Nov 16): Upgraded to Claude Sonnet 4.5, Portuguese i18n
  • v1.4.325 (Nov 15): Message handling improvements
  • v1.4.324 (Nov 14): Optional YouTube API key

Risk: Pattern removals and behavior changes could break existing workflows.

bnkath2o avatar Nov 18 '25 16:11 bnkath2o

Thanks for the detailed architectural analysis! You've identified the issue correctly.

The Problem: The fabric-repo/ directory is a static snapshot of Fabric (from Oct 2024), not a git repository. The SKILL.md instructions that say "run git pull" are incorrect.

Why It's This Way: When Fabric was integrated into PAI (commit 3cf5732), the entire Fabric source was committed as static files rather than using a git submodule. This was likely done for simplicity but does prevent updates.

Current Options:

Option 1: Accept Static Snapshot (Recommended for now)

  • Fabric patterns in PAI are intentionally versioned with PAI
  • To get new patterns, update PAI itself: git pull origin main
  • This ensures pattern compatibility with PAI's routing system

Option 2: Manual Update (Advanced) If you need the latest patterns now:

cd ~/.claude/skills/fabric
rm -rf fabric-repo
git clone https://github.com/danielmiessler/fabric.git fabric-repo

Long-term Fix: We should either:

  1. Update SKILL.md to document that fabric is a static snapshot
  2. Convert to git submodule for auto-updates
  3. Provide a script to pull latest fabric

For now, I recommend updating the documentation to clarify this. The static snapshot approach actually has benefits (version stability, guaranteed compatibility).

I'll update the fabric SKILL.md to correct the documentation. Would that address your needs?

danielmiessler avatar Nov 19 '25 07:11 danielmiessler

Yes that will address my needs. I can implement a out of band update if I choose at a later date. Thank you!

bnkath2o avatar Nov 19 '25 17:11 bnkath2o

Fixed the documentation with working update instructions. Great analysis!

— Kai

danielmiessler avatar Nov 25 '25 19:11 danielmiessler