Agent Skillslangchain-ai/openwiki › migrate-wiki-to-okf

migrate-wiki-to-okf

GitHub

将现有OpenWiki迁移为符合OKF标准,通过递归分配子代理批量修复或添加YAML前置元数据,严格保留文档正文及自定义字段,确保合规且不影响文件结构。

skills/migrate-wiki-to-okf/SKILL.md langchain-ai/openwiki

触发场景

用户请求OKF迁移 Wiki Markdown文件缺少有效的OKF YAML front matter

安装

npx skills add langchain-ai/openwiki --skill migrate-wiki-to-okf -g -y
更多选项

不安装直接使用

npx skills use langchain-ai/openwiki@migrate-wiki-to-okf

指定 Agent (Claude Code)

npx skills add langchain-ai/openwiki --skill migrate-wiki-to-okf -a claude-code -g -y

安装 repo 全部 skill

npx skills add langchain-ai/openwiki --all -g -y

预览 repo 内 skill

npx skills add langchain-ai/openwiki --list

SKILL.md

Frontmatter
{
    "name": "migrate-wiki-to-okf",
    "description": "Make an existing OpenWiki fully OKF-compliant. Use when any current wiki Markdown files lack valid OKF YAML front matter or when the user requests an OKF migration."
}

Migrate Wiki to OKF

Add or correct OKF front matter across the existing wiki without changing accurate document bodies.

Workflow

  1. Before editing, recursively inventory every directory under the wiki root. Include the root directory itself.
  2. Write a plan listing every discovered directory and its assigned subagent.
  3. Spawn exactly one subagent for each directory. If concurrency is limited, run them in batches; never combine multiple directories into one assignment.
  4. Give each subagent write access only to Markdown files directly inside its assigned directory. It must not recurse into or modify another directory.
  5. Wait for every subagent, then verify that every planned directory was processed. Send missed corrections back to a subagent scoped to that same directory.

Subagent Task

Each subagent must:

  • Inspect every non-reserved Markdown concept file directly in its assigned directory.
  • Leave already compliant files unchanged.
  • Add or correct only the leading YAML front matter when needed. Preserve the existing Markdown body.
  • Preserve all valid existing front matter fields, including timestamp and producer-defined extension fields. Never delete an unknown field merely because OpenWiki did not create it.
  • Require only a non-empty, descriptive type. Infer recommended title and one to two sentence description values when useful. Add resource, tags, or timestamp only when supported by the document and available evidence.
  • Use this standard-field formatter while retaining any existing producer extensions:
---
type: <Type name>
title: <Optional display name>
description: <Optional one to two sentence summary (optimized for search & retrieval)>
resource: <Optional canonical URI for the underlying asset>
tags: [<tag>, <tag>]
timestamp: <Optional ISO 8601 datetime>
---
  • index.md and log.md are reserved OKF documents. Do not add concept front matter to them or process them as concepts; OpenWiki regenerates directory indexes deterministically after the run.
  • Report the files checked, the files changed, and any file whose metadata could not be inferred confidently.
  • The description field is important for retrieval tools. When present, make it clear, detailed, and optimized for search.

Do not create, delete, move, or reorganize wiki pages during this migration.

版本历史

  • 0.2.0 当前 2026-07-19 09:15

同 Skill 集合

skills/write-connector/SKILL.md

元信息

文件数
0
版本
0.2.0
Hash
1ae6ca36
收录时间
2026-07-19 09:15

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-21 20:04
浙ICP备14020137号-1 $访客地图$