Browse by type
A local AI writing skill system for style transfer, long-term memory, spec-driven writing, reviewer-defense, PDF evidence ingestion, and multi-agent academic writing.
一个面向 Agent / IDE 的本地 AI 写作技能系统,支持风格迁移、长期记忆、规范驱动写作、审稿防御、PDF 证据入库与多智能体学术写作闭环。
AI Vibe Writing Skills 不是一个传统的 Web 应用或后端服务。它是一套放在本地仓库里的 AI 写作上下文系统:Agent 打开这个项目后,会读取 .ai_context 里的提示词、风格档案、错题本、长期记忆、文档规范和工作流,从而把一次普通写作任务变成可追踪、可复核、可迭代的写作工程。
它的设计目标不是让 AI 替代作者,而是把写作中的 dirty work 交给 AI:
一句话概括:
这是一个让 AI 成为“影子写手 + 审稿红队 + 证据管家 + 格式工程师”的本地技能包。
新增 defensive-writing-agent,用于投稿前的审稿人红队式预审。
核心思想:
防御性写作 = 贡献边界管理 + 局限主动披露 + 审稿人误解预防
它不是让作者嘴硬,也不是把局限藏起来,而是把论文的贡献、边界、证据和局限讲清楚,让审稿人即使挑刺,也只能挑到“适用边界”或“未来工程优化”,而不是动摇核心创新。
该模块内置三层策略:
| Strategy / 策略 | Core Logic / 核心逻辑 | Use Case / 适用场景 |
|---|---|---|
| 上策 | 这不是缺陷,这是特点 | 所谓短板与目标场景、威胁模型或使用约束天然一致 |
| 中策 | 缺点本身是贡献边界分析 | 问题是真实局限,但来自工程参数或部署条件 |
| 下策 | Rebuttal 兜底 | 前两者都不成立,或审稿意见已经出现 |
11_context_compactor_agent.md: 长上下文压缩,提取核心论点骨架、风格快照和已决规范。12_router_agent.md: 动态 Prompt 路由,根据章节和文件类型挂载不同提示词切片。13_latex_self_healing_agent.md: LaTeX 编译自愈,通过日志分析、脚本修复和重编译闭环解决复杂错误。本系统采用 Spec-Driven Writing,也就是“先定义事实和边界,再写正文”。
flowchart TD
A["User Request
用户写作请求"] --> B["Document Spec
单点事实规范"]
B --> C["Outline + DoD
大纲与验收标准"]
C --> D["Content Writer
内容写作"]
D --> E["Defensive Writing
防御性预审"]
E --> F["Content Review
规范审计与 AI 味检查"]
F --> G{"Pass?
是否通过"}
G -->|Yes| H["Final Draft
最终文本"]
G -->|No| D
B -.-> M["Hard / Soft Memory
长期记忆"]
M -.-> D
M -.-> E
M -.-> F
style B fill:#eef2ff,stroke:#4f46e5,stroke-width:2px
style E fill:#fff7ed,stroke:#ea580c,stroke-width:2px
style F fill:#fef3c7,stroke:#d97706,stroke-width:2px
style H fill:#dcfce7,stroke:#16a34a,stroke-width:2px
document_spec.md,明确主题、目标、核心论点、证据要求和防御性写作约束。outline_template.md 生成带 definition_of_done 和 defensive_dod 的大纲。style_profile.md、error_log.md、硬性记忆、柔性记忆和参考文献库。content-writer-agent 根据 Spec、大纲、风格和证据生成正文。defensive-writing-agent 识别审稿攻击面,执行上策、中策、下策选择。content-review-agent 检查 Spec、DoD、Defensive DoD、AI 味、证据覆盖和心流质量。git clone https://github.com/donghuixin/AI-Vibe-Writing-Skills.git
cd AI-Vibe-Writing-Skills
将该文件夹作为工作区打开,例如 Trae、Cursor、VS Code、Claude Code 或 Antigravity。
编辑 .ai_context/custom_specs.md,填写常用主题、目标读者、引用要求、检测阈值、防御性写作设置等。
建议至少填写:
TopicTarget AudienceWriting ModeEvidence RequirementsDefensive Writing Settings首次使用建议提供 3-5 篇高质量旧作,然后对 Agent 说:
Use style-extractor to analyze these texts and update
.ai_context/style_profile.md.
系统会提取:
简单任务可直接调用 Writer:
Use content-writer-agent to draft an introduction about RAG based on my style.
长文或论文建议使用完整闭环:
Use workflow-coordinator to draft section 2 with outline, defensive writing, and review.
投稿前建议单独运行防御性预审:
Use defensive-writing-agent to red-team the Discussion section before submission.
防御性写作模块是 v1.9 的核心新增能力。它专门处理学术审稿中最常见的问题:审稿人抓住局限,试图把局限上升为核心贡献不成立。
它的目标不是“反驳审稿人”,而是在正文阶段提前完成三件事:
flowchart LR
A["Reviewer Attack
审稿攻击点"] --> B{"Can it be a feature
in this scenario?"}
B -->|Yes| U["上策
这不是缺陷,这是特点"]
B -->|No| C{"Can it become
an engineering map?"}
C -->|Yes| M["中策
分析原因、变量与边界"]
C -->|No| L["下策
Rebuttal 兜底"]
U --> D["Suggested Insertions
写入正文"]
M --> D
L --> E["Rebuttal Backup
审稿回复备份"]
D --> F["Defensive DoD
防御性验收标准"]
E --> F
style U fill:#dcfce7,stroke:#16a34a,stroke-width:2px
style M fill:#fef9c3,stroke:#ca8a04,stroke-width:2px
style L fill:#fee2e2,stroke:#dc2626,stroke-width:2px
| Strategy | Meaning | Example |
|---|---|---|
| 上策 | 把所谓缺陷解释为场景适配的特点 | 通信距离近意味着短距交互、更低窃听风险、更小攻击面 |
| 中策 | 把真实局限分析为工程优化边界 | 长距离受天线、功率、遮挡和干扰影响,本文贡献是速率机制 |
| 下策 | 为审稿意见准备克制回复 | 承认当前范围,补证据、降级 claim 或说明未来实验 |
| Attack Type | Reviewer Concern | Defensive Direction |
|---|---|---|
| 实验距离 / 实验范围不足 | 距离太短、场景太理想 | 判断能否上策化为安全、近场、低暴露面特点;否则分析距离扩展边界 |
| 样本规模不足 | 样本、设备、场景或实验次数太少 | 明确样本角色是 proof-of-concept、controlled validation 还是 population-level evidence |
| Baseline 不足或不公平 | 没有强 baseline,或比较条件不一致 | 说明同约束比较域,列出 closest prior、practical baseline、excluded baseline rationale |
| 消融实验不足 | 不知道提升来自哪个模块 | 区分可消融组件和耦合机制,用 controlled variant 或敏感性分析补足 |
| 泛化性不足 | 只在单一数据集、平台或场景有效 | 写清已验证范围和合理外推条件,不做无限泛化 |
| 统计显著性不足 | 没有 error bar、置信区间或多次运行 | 没有统计支撑时降级为 observed / measured improvement |
| 部署成本过高 | 复杂、贵、难集成 | 拆分 compute、hardware、integration、calibration、maintenance cost |
| 能耗问题 | 速率提升是否靠更高功耗 | 明确 energy per bit、duty cycle、active time、transmission power |
| 实时性 / 延迟不足 | 吞吐提升不等于低延迟 | 区分 throughput、latency、tail latency、jitter、packet loss |
| 理论新颖性不足 | 只是工程优化或组合已有技术 | 先声明贡献类型:method、system、dataset、theory、benchmark 或 concept feasibility |
defensive-writing-agent 必须输出:
Reviewer Attack Surface: 审稿人可能攻击的点Core Contribution Boundary: 核心贡献与非核心变量Strategy Ladder: 每个攻击点使用上策、中策还是下策Defensive Framing Plan: 每个风险点如何写进正文Suggested Insertions: 可直接插入论文的段落或句子Rebuttal Backup: 若审稿人真的提出,该如何回应Defensive DoD: 当前章节必须满足的防御性验收标准.ai_context/custom_specs.md 是全局配置入口,包含:
防御性写作相关字段:
- **Defensive Writing Settings**:
- **Target Venue**: [e.g. NeurIPS, CHI, MobiCom, Nature, IEEE Journal]
- **Contribution Type**: [e.g. method, system, dataset, theory, benchmark, concept_feasibility]
- **Known Weaknesses**: [e.g. short-range evaluation, limited sample size, missing energy study]
- **Reviewer Sensitivity**: [e.g. novelty, baselines, statistics, deployment, reproducibility]
- **Strategy Preference**: [e.g. upper_first]
- **Allow Feature Reframing**: [e.g. true]
- **Require Engineering Boundary Analysis**: [e.g. true]
- **Generate Rebuttal Backup**: [e.g. true]
.ai_context/document_spec_template.md 是大型写作任务的单点事实模板。它用于明确:
| File | Purpose |
|---|---|
| .ai_context/style_profile.md | 用户风格指纹 |
| .ai_context/error_log.md | 错题本与禁忌表达 |
| .ai_context/memory/hard_memory.json | 术语、单位、关键事实 |
| .ai_context/memory/soft_memory.json | 偏好、语气、表达习惯 |
| .ai_context/memory/reference_library.json | 参考文献与证据库 |
Antigravity 或支持 .agents/workflows 的 Agent IDE 可以直接使用以下工作流:
| Command | File | Purpose |
|---|---|---|
/ai_vibe_writing |
.agents/workflows/ai_vibe_writing.md | 完整执行 Spec、Outline、Write、Defend、Review |
/defensive_writing |
.agents/workflows/defensive_writing.md | 单独执行审稿攻击面预审 |
/pdf_ingestion |
.agents/workflows/pdf_ingestion.md | 读取 PDF 并更新参考文献库和长期记忆 |
PDF 阅读模块用于把论文、报告或技术文档转为结构化证据。
标准流程:
.ai_context/custom_specs.md 中的 PDF Reading Settings。pdf-reader-agent 抽取摘要、方法、结果、局限、术语、数据点和引用格式。reference_library.json。相关文件:
仓库包含 MinerU 相关示例:
示例:
python mineru_gui.py
或:
magic-pdf -p ./test.pdf -o ./output -m txt
Local_AI_Style_Check 提供完全本地运行的 LaTeX 论文 AI 痕迹检测工具。
功能:
安装:
cd Local_AI_Style_Check
pip install -r requirements.txt
python paper_ai_detector.py
.
├── README.md
├── SKILLS.md
├── FREE_AI_DETECTION_APIS.md
├── .traerules
├── .agents/
│ └── workflows/
│ ├── ai_vibe_writing.md
│ ├── defensive_writing.md
│ └── pdf_ingestion.md
├── .ai_context/
│ ├── custom_specs.md
│ ├── document_spec_template.md
│ ├── outline_template.md
│ ├── style_profile.md
│ ├── error_log.md
│ ├── reference_learning.md
│ ├── pdf_ingestion_template.md
│ ├── memory/
│ │ ├── hard_memory.json
│ │ ├── soft_memory.json
│ │ └── reference_library.json
│ ├── prompts/
│ │ ├── 1_style_extractor.md
│ │ ├── 2_writer.md
│ │ ├── 3_error_logger.md
│ │ ├── 4_grammar_checker.md
│ │ ├── 5_long_term_memory.md
│ │ ├── 6_outline_manager_agent.md
│ │ ├── 7_content_writer_agent.md
│ │ ├── 8_content_review_agent.md
│ │ ├── 9_workflow_coordinator.md
│ │ ├── 10_pdf_reader_agent.md
│ │ ├── 11_context_compactor_agent.md
│ │ ├── 12_router_agent.md
│ │ ├── 13_latex_self_healing_agent.md
│ │ └── 14_defensive_writing_agent.md
│ └── scripts/
│ └── parse_pdf.py
├── Local_AI_Style_Check/
│ ├── README.md
│ ├── requirements.txt
│ └── paper_ai_detector.py
├── mineru_gui.py
├── run_magic_pdf.py
├── create_pdf.py
├── magic-pdf.json
└── configs/
└── layoutlmv3_base_inference.yaml
$ claude mcp add AI-Vibe-Writing-Skills \
-- python -m otcore.mcp_server <graph>