Fabric
它能做什么
为你的智能体提供一个庞大的现成提示词模式库,用于总结、分析、创作和改进内容。它适用于希望使用经过验证的提示词、而不必从零编写的人。
适用场景
- ✓当你想用经过验证的提示词完成某项特定分析,例如威胁建模或主张核查的时候。
- ✓当你需要以固定格式总结视频、文章或长文本的时候。
- ✓当你想用经过测试的模式而非临时编写的提示词来完成审查或改写的时候。
技能链接
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Fabric/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请对这个系统设计进行威胁建模,并列出风险。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能会把你的请求匹配到合适的模式,然后直接按照模式的说明运行。Fabric 命令行工具只用于部分任务,例如获取 YouTube 文字稿。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Fabric
Contents: Ideal State · Intent Routing · Data & Config · Gotchas · Examples
Runs any of 240+ specialized prompt patterns across extraction, summarization, analysis, creation, improvement, security, and rating. Common ones: extract_wisdom, create_threat_model, analyze_claims, improve_writing, review_code, mermaid, youtube_summary. Patterns run natively: the model reads the pattern's system.md and applies it directly, with no CLI round-trip. The fabric CLI is used only for YouTube transcripts (-y) and URL fallback (-u). A summarize-family run on a URL or on text of 200 characters or more also fires the installed harvest skill on the same input, which writes a KNOWLEDGE note (Intents/ExecutePattern.md § Tool contract).
The skill also holds our own modernized versions of the patterns that rank highest on value, public use and our own use (References/PortRanking.tsv), written as ideal-state intents with their own Assay suite and code checker. A port routes only after it beats its upstream prompt head to head on held-out inputs (Tools/PortDuel.ts): 51 intents covering 57 patterns, WordSummary included, run instead of the upstream prompt. Seven more are still behind upstream and listed separately; their patterns run upstream until a revision wins.
Ideal State
- The pattern that runs is the one the request named, or the one its wording maps to, and its output keeps the format the pattern's OUTPUT INSTRUCTIONS define.
- A request for a pattern we have ported runs its intent, never the upstream prompt:
create_5_sentence_summaryandwsrun WordSummary, and every pattern inIntents/ExecutePattern.md§ Ported patterns runs the intent it names. - Patterns run natively from
Patterns/; the fabric CLI is touched only for YouTube transcripts and blocked URLs. - The local
Patterns/library carries every pattern in upstream fabric'sdata/patterns/, takes nothing from the local fabric config, keeps the release scrub, and every update reports its before and after counts.
Intent Routing
| Intent | Trigger | File |
|---|---|---|
| ExecutePattern | "use fabric", "run pattern", "apply pattern", "fabric extract wisdom" or the extract_wisdom pattern by name, "summarize", "analyze with fabric" |
Intents/ExecutePattern.md |
| UpdatePatterns | "update fabric", "update patterns", "sync fabric", "pull patterns" | Intents/UpdatePatterns.md |
| WordSummary | ws or ws 3, "word summary", "N levels from N words to one", "5 levels", create_5_sentence_summary |
Intents/WordSummary.md |
Ported patterns
One intent per ported upstream pattern, close siblings sharing one. Each runs instead of the upstream prompt; Intents/ExecutePattern.md § Ported patterns maps every pattern name to its intent.
Security
| Intent | Trigger | File |
|---|---|---|
| AnalyzeThreatReport | "analyze this threat report", "just the trends from this report", "extract the commands from this pentest writeup", analyze_threat_report, analyze_threat_report_cmds, analyze_threat_report_trends |
Intents/AnalyzeThreatReport.md |
| ThreatScenarios | "threat scenarios", "worried about", create_threat_scenarios |
Intents/ThreatScenarios.md |
| ReportFinding | "write a pentest finding for this", "turn this scan output into a report finding", "improve this security finding", create_report_finding, improve_report_finding |
Intents/ReportFinding.md |
| AnalyzeLogs | "analyze logs", "analyze these logs", "why did the deploy fail", analyze_logs |
Intents/AnalyzeLogs.md |
| AnalyzeMalware | "analyze this malware sample", "triage this sandbox report", "write a YARA rule and IOCs for this", analyze_malware |
Intents/AnalyzeMalware.md |
| AnalyzeIncident | "analyze incident", "incident record from an article", "how did the X breach happen", analyze_incident |
Intents/AnalyzeIncident.md |
| CyberSummary | "cyber summary", "summarize this week's security news", "security news briefing", create_cyber_summary |
Intents/CyberSummary.md |
| SemgrepRule | "write a semgrep rule", "semgrep rule for", "semgrep rule from this fix", write_semgrep_rule |
Intents/SemgrepRule.md |
| SecureByDesignQuestions | "secure by design questions", "what security questions should I ask about this design", "security design review questions for", ask_secure_by_design_questions |
Intents/SecureByDesignQuestions.md |
| SigmaRules | "sigma rules", |
常见问题
包含多少个模式?
模式库包含 240 多个模式,其中最常用的模式已经被重写并经过测试。
我需要安装 Fabric 工具吗?
大多数情况不需要。模式原生运行,Fabric 工具只用于 YouTube 文字稿和 URL 备用方案。
我可以更新这些模式吗?
可以。该技能包含一个用于更新模式库的意图。
详情
作者的原始描述
Our ideal-state ports of the most-used Fabric patterns, each an intent with its own Assay suite and code checker that beat the upstream prompt head to head (security, reasoning, reading, engineering, writing), plus every other Fabric pattern run natively from Patterns/. USE WHEN word summary, ws, N levels, fabric, fabric pattern, run fabric, update patterns, any Fabric pattern name, threat report, threat scenarios, security finding, analyze logs, malware, incident, semgrep rule, sigma rules, nuclei template, email headers, terraform plan, analyze claims, logical fallacies, falsifiable, compare
repo: danielmiessler/LifeOS
热度
- GitHub 星标
- 20k
- 排名
- #10426
- 许可证
- MIT
- 更新时间
- 2026/10/28
评论
- …