用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill fabric命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
基于 SOC 职业分类
正在显示 SKILL.md
| name | fabric |
| description | AI-powered text processing using Fabric patterns with local Ollama Use when this capability is needed. |
| metadata | {"author":"davidmoneil"} |
AI-powered text processing using danielmiessler/fabric patterns with local Ollama inference.
| Aspect | Description |
|---|---|
| Purpose | Run pre-built AI prompt patterns for logs, code review, commit messages |
| Backend | Local Ollama (qwen2.5:32b primary, qwen2.5:7b-instruct fallback) |
| Pattern | Capability Layering - thin wrapper over existing CLI scripts |
| Cost | Free (local inference) |
| Need | Action | Command |
|---|---|---|
| Analyze logs | AI analysis of Docker container logs | /fabric:analyze-logs <container> |
| Commit message | Generate from staged changes | /fabric:commit-msg |
| Code review | AI-powered code review | /fabric:review-code <file> |
| List patterns | See all 234 available patterns | /fabric patterns |
| Run any pattern | Execute arbitrary pattern | /fabric run <pattern> |
Analyze Docker container logs for patterns, anomalies, and recommendations.
/fabric:analyze-logs prometheus # Last 50 lines
/fabric:analyze-logs nginx --lines 200 # More context
/fabric:analyze-logs n8n --since 1h # Recent logs only
Output sections: Overview, Key Observations, Patterns/Anomalies, Recommendations
Generate conventional commit messages from git diffs.
/fabric:commit-msg # From staged changes
/fabric:commit-msg --all # From all changes
Output format: <type>: <description> with change list
AI-powered code review with prioritized recommendations.
/fabric:review-code src/server.ts # Single file
/fabric:review-code --staged # Staged changes
Output sections: Overall Assessment, Prioritized Recommendations, Detailed Feedback
List all available Fabric patterns.
/fabric patterns # List all 234 patterns
/fabric patterns --search log # Filter by keyword
Run any Fabric pattern directly.
echo "text" | /fabric run extract_wisdom
/fabric run summarize --file document.md
This skill follows the Capability Layering Pattern:
Layer 5: USER REQUEST
"analyze the prometheus logs"
↓
Layer 4: PROMPT (this skill)
Routes to correct script
↓
Layer 3: CLI
Scripts/fabric-analyze-logs.sh prometheus
↓
Layer 2: CODE
fabric-wrapper.sh → fabric CLI → Ollama
↓
Layer 1: INFRASTRUCTURE
Ollama service (localhost:11434)
| Script | Purpose |
|---|---|
Scripts/fabric-wrapper.sh | Core wrapper with health checks, model fallback |
Scripts/fabric-analyze-logs.sh | Log analysis for Docker/files |
Scripts/fabric-commit-msg.sh | Commit message generation |
Scripts/fabric-review-code.sh | Code review |
| Variable | Default | Description |
|---|---|---|
FABRIC_PRIMARY_MODEL | qwen2.5:32b | Primary model for analysis |
FABRIC_FALLBACK_MODEL | qwen2.5:7b-instruct | Fallback on timeout |
FABRIC_TIMEOUT_PRIMARY | 90 | Timeout in seconds for primary |
FABRIC_TIMEOUT_FALLBACK | 120 | Timeout for fallback |
OLLAMA_URL | http://localhost:11434 | Ollama API endpoint |
| Task | Recommended Model | Reason |
|---|---|---|
| Log analysis | 32b (default) | Benefits from deep reasoning |
| Commit messages | 7b | Fast, simple task |
| Code review | 7b (default) | Good balance of speed/quality |
| Complex analysis | 32b | Use --model 32b flag |
Fabric includes 234 patterns. Most useful for this infrastructure:
| Pattern | Use Case | Value |
|---|---|---|
analyze_logs | Docker/service troubleshooting | HIGH |
summarize_git_diff | Commit messages | HIGH |
review_code | Code review | HIGH |
extract_wisdom | Document summarization | MEDIUM |
create_design_document | Technical specs | MEDIUM |
analyze_threat_report | Security analysis | MEDIUM |
Full pattern list: fabric --list or https://github.com/danielmiessler/fabric/tree/main/patterns
The wrapper auto-restarts Ollama, but if issues persist:
# Check Ollama status
systemctl status ollama
# Restart manually
sudo systemctl restart ollama
# Check models available
ollama list
For large inputs, increase timeout:
FABRIC_TIMEOUT_PRIMARY=180 fabric-analyze-logs.sh prometheus --lines 500
Or force the faster model:
fabric-analyze-logs.sh prometheus --model 7b
Update fabric patterns:
fabric --update
/ollama skill (if needed)| Version | Date | Changes |
|---|---|---|
| 1.0.0 | 2026-01-22 | Initial skill creation with 4 commands |
Converted and distributed by TomeVault — claim your Tome and manage your conversions.