xiaohongshu
xiaohongshu
kb
知识库管理完整规则;~init命令或知识库缺失时读取;包含创建、同步、审计、上下文获取规则
Full skill instructions
文件结构:
helloagents/ # HelloAGENTS 工作空间(SSOT)
├── CHANGELOG.md # 版本历史(Keep a Changelog)
├── project.md # 技术约定
├── wiki/ # 核心文档
│ ├── overview.md # 项目概述
│ ├── arch.md # 架构设计
│ ├── api.md # API 手册
│ ├── data.md # 数据模型
│ └── modules/<module>.md
├── plan/ # 变更工作区
│ └── YYYYMMDDHHMM_<feature>/
│ ├── why.md # 变更提案
│ ├── how.md # 技术设计
│ └── task.md # 任务清单
└── history/ # 已完成变更归档
├── index.md
└── YYYY-MM/YYYYMMDDHHMM_<feature>/
路径约定:
plan/、wiki/、history/ 均指 helloagents/ 下的完整路径helloagents/ 目录下创建CHANGELOG.md, project.md, wiki/*)YYYYMMDDHHMM_<feature>/why.md + how.md + task.md问题分级:
<context_acquisition_rules> 步骤1: 先检查知识库(如存在)
project.md, wiki/overview.md, wiki/arch.mdwiki/modules/<module>.md, wiki/api.md, wiki/data.md步骤2: 知识库不存在/信息不足 → 全面扫描代码库
<kb_sync_rules> 触发时机: 代码变更后,必须立即同步更新知识库
步骤1 - 模块规范更新:
plan/YYYYMMDDHHMM_<feature>/why.md 的 核心场景 章节(在迁移前读取)wiki/modules/<module>.md 的 规范 章节
步骤2 - 按变更类型更新:
wiki/api.mdwiki/data.mdwiki/arch.mdwiki/overview.mdproject.md步骤3 - ADR维护(如包含架构决策):
plan/YYYYMMDDHHMM_<feature>/how.md 的 架构决策 ADR 章节读取)wiki/arch.md 的 重大架构决策 表格中追加history/YYYY-MM/YYYYMMDDHHMM_<feature>/how.md#adr-xxx步骤4 - 清理:
步骤5 - 缺陷复盘(修复场景专属):
<kb_missing_handler> STEP 1: 检查核心文件是否存在
CHANGELOG.md, project.md, wiki/*.mdSTEP 2: 知识库不存在 按阶段处理:
需求分析阶段:
- 只标记问题,不创建知识库
- 在总结中提示"知识库缺失,建议先执行 ~init 命令"
方案设计/开发实施阶段:
- 全面扫描代码库并创建完整知识库:
- 根目录: CHANGELOG.md, project.md
- wiki/: overview.md, arch.md, api.md, data.md
- wiki/modules/: <module>.md(每个模块)
- 大型项目(按G4判定)分批处理(每批≤20个模块)
STEP 3: 知识库存在
执行质量前置检查:
重度问题 → 全面扫描并重建(方案设计/开发实施阶段)
轻度问题 → 继续流程
</kb_missing_handler>
<legacy_plan_migration> 适用场景: 用户响应"确认迁移"后的批量处理流程
步骤1 - 用户选择迁移范围:
列出所有遗留方案包,询问用户选择:
检测到 X 个遗留方案包,请选择迁移方式:
- 输入"全部" → 迁移所有遗留方案包
- 输入方案包序号(如 1, 1,3, 1-3)→ 迁移指定方案包
- 输入"取消" → 保留所有遗留方案包
方案包清单:
[1] 202511201300_logout
[2] 202511201400_profile
[3] 202511201500_settings
用户响应处理:
步骤2 - 逐个迁移选定的方案包:
for each 选定的方案包:
1. 更新任务状态: 所有任务状态更新为 [-]
顶部添加: > **状态:** 未执行(用户清理)
2. 迁移至历史记录目录:
- 从 plan/ 移动到 history/YYYY-MM/
- YYYY-MM 从方案包目录名提取
- 同名冲突: 强制覆盖
3. 更新历史记录索引: history/index.md(标注"未执行")
步骤3 - 输出迁移摘要:
✅ 已迁移 X 个方案包至 history/:
- 202511201300_logout → history/2025-11/202511201300_logout/
- 202511201500_settings → history/2025-11/202511201500_settings/
📦 剩余 Y 个方案包保留在 plan/:
- 202511201400_profile
</legacy_plan_migration>
<legacy_plan_scan> 触发时机:
扫描逻辑:
输出位置: 自动注入到 G6.1 输出格式的末尾插槽中
输出格式:
📦 plan/遗留方案: 检测到 X 个遗留方案包([列表]),是否需要迁移至历史记录?
列表格式: YYYYMMDDHHMM_<feature>(每个一行,最多5个,超过显示"...等X个")
用户响应:
严格遵循G6.1统一输出格式:
✅【HelloAGENTS】- 知识库命令完成
- 📚 知识库状态: [已创建/已更新/已重建]
- 📊 操作摘要: 扫描X模块, 创建/更新Y文档
- 🔍 质量检查: [检查结果,如有问题]
────
📁 变更:
- {知识库文件}
- helloagents/CHANGELOG.md
- helloagents/project.md
...
🔄 下一步: 知识库操作已完成,可进行其他任务
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience