360 Secure SkillHub
360 安全技能中心

Update MD

核心功能是依据统一规范创建/更新项目Markdown文档,遵循“一文件一主题”拆分原则、固定文档结构与“部署即更新”的强制规则。典型场景包括新项目搭建文档集、功能变更或部署后维护文档。输出含总览、部署、功能、数据库、版本日志等的标准MD文档集,总览需包含项目状态、更新规则等关键内容。

tonylnng
tonylnng
热度 52.76
最近更新 2026-05-11 17:28:27
分类:效率依赖:读写文件 / 内部调用大模型应用场景:工作流 / 模板 / 笔记整理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add tonic-update-md
Metadata
name
update-md
description
Create or update project documentation in Markdown. Use when building a new project doc set, updating existing docs after a deploy or feature change, or establishing a doc structure for a new project. Covers doc splitting, update rules, naming conventions, and the standard file map pattern used across all projects (TPMS, TonicLab, etc.).

update-md

Core Principles

  1. Split, don't consolidate — One file per concern. Never dump everything into one doc.
  2. Overview is always the entry point — Every project has a PROJECT-OVERVIEW.md that's lean and links to everything else.
  3. 按需讀取 — Detail files are only read when needed; keep them out of the overview.
  4. Update rules are mandatory — Every doc set must define when each file should be updated.
  5. Deploy = Update docs — Docs update immediately after every deploy. No exceptions.

Standard Doc Set Structure

Every project follows this pattern:

PROJECT-OVERVIEW.md     ← 精簡總覽,每 session 必讀
PROJECT-DEPLOY.md       ← 部署、Docker、Nginx、SSL、環境變數
PROJECT-APPS.md         ← 功能規格(如有多個 app/module)
PROJECT-DB.md           ← 數據庫 schema 及連接設定
PROJECT-HISTORY.md      ← 版本日誌,每次 deploy 後更新

Add or remove files based on project complexity. See references/doc-templates.md for file templates.

OVERVIEW.md Must-Haves

  • Project name, domain/URL, status, VM/hosting info
  • Feature/tool status table (✅ / 🔄 / ⏳ / ❌)
  • Doc map table (file → content)
  • Update rules table (change type → files to update)
  • Current version number

Update Rules (include in every OVERVIEW.md)

改動類型 需要更新
新功能 / 改功能 OVERVIEW(狀態)+ APPS
新版本發布 HISTORY + OVERVIEW(版本號)
部署/基礎設施改動 DEPLOY
DB schema 改動 DB

Status Symbols

Use consistently across all docs:

  • ✅ 完成
  • 🔄 進行中
  • ⏳ 待開始
  • ❌ 取消 / 廢棄

When Updating Docs

  1. Identify which files are affected by the change (use the update rules table)
  2. Update only those files — don't touch unrelated docs
  3. Update version number in OVERVIEW if it's a release
  4. Add entry to HISTORY with date, version, and bullet points

Creating a New Doc Set

  1. Create PROJECT-OVERVIEW.md first — establish the doc map before writing detail files
  2. Add detail files as needed (DEPLOY, APPS, DB, HISTORY)
  3. Add the doc map to the project's AGENTS.md so agents know which files exist
  4. Reference references/doc-templates.md for boilerplate

See references/doc-templates.md for ready-to-use file templates.