Index of every page on this site: llms.txt
All skills
aktsmm avatar

/export-knowledge

@9bedf91
by yamapanaktsmm/agent-skills27 stars
5
Run it yourself

Reusable learnings: セッション中の再利用知見を構造化し、ドメイン別(microsoft / copilot など)に振り分けて出力。Use when: knowledge, lessons learned, 知見化。作業ログは export-session-log、対話再現は export-copilot-session-dialogue を使う

Use this Skill: https://skilld.dev/gh/aktsmm/agent-skills/export-knowledge

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈78 tokens for metadata: the name and description. ≈1.1k when used: this file.

How this Skill uses context

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

This Skill turns off automatic use in Claude Code. Its description stays out of the automatic Skill list by default.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

<!-- syncToGlobal: true --> <!-- author: aktsmm --> <!-- repository: https://github.com/aktsmm/Agent-Customization --> <!-- license: CC BY-NC-SA 4.0 --> <!-- copyright: Copyright (c) 2025 aktsmm -->

export knowledge

このセッションで得られた知見を構造化してエクスポートします。 ドメインを自動判定し、適切な出力先に振り分けます。

Core Contract

  • セッション知見を microsoft または copilot ドメインへ振り分ける
  • primary category を 1 つ選び、残りは tags に回す
  • Markdown と index の両方を更新する
  • 判定に迷う場合だけユーザー確認する

Domain Routing

出力先の優先順は、ユーザー指定 > 環境変数 > 明示された workspace/local > 確認。

ドメイン キーワード
microsoft Azure, M365, Entra ID, Intune, Defender, Power Platform, Windows Server, SQL Server, Dynamics 365, Copilot Studio
copilot GitHub Copilot, MCP, Agent, Prompt, VS Code 拡張, VS Code, Workflow, Skills, Context Engineering
ドメイン 環境変数
microsoft $env:EXPORT_KNOWLEDGE_MICROSOFT_DIR\{category}\
copilot $env:EXPORT_KNOWLEDGE_COPILOT_DIR\{category}\
  • 判定に迷う場合はユーザーに確認
  • 1セッションで両ドメインの知見がある場合は、それぞれ個別にエクスポート
  • 対応する環境変数が未設定または path が存在しない場合は、workspace/local が明示されたときだけ {workspace}/_output-knowledge/{domain}/{category}/ を使い、それ以外は作成前に確認する

出力先の上書き

条件 出力先
デフォルト 上記ドメイン別の環境変数。未設定または path 不在なら、workspace/local の明示がない限り確認
「workspace」「ローカル」等 {workspace}/_output-knowledge/{domain}/{category}/
パス指定あり 指定パス

Categories

microsoft ドメイン

azure-compute / azure-networking / azure-storage / azure-security / azure-identity / azure-monitoring / azure-migration / azure-arc / m365 / intune / defender / entra-id / power-platform / licensing / architecture / troubleshooting / lessons-learned

copilot ドメイン

prompts / agents / workflows / subagent / context / mcp / skills / debugging / automation / evaluation / vscode-settings / lessons-learned / templates

Workflow

  1. セッションから知見を抽出(技術的発見、エラー解決、設計判断、参照 URL)
  2. ドメインを判定(microsoft or copilot)
  3. カテゴリを1つ選定、他はタグに
  4. 以下の形式でMarkdownファイルを作成
  5. ファイル名: {YYYYMMDD}-{topic-slug}.md
  6. インデックス更新(ドメインに応じた _index フォルダ)

Output Requirements

必須要素:

  • frontmatter: title, datetime, domain, primaryCategory, tags
  • references
  • ## 知見
  • ## 具体例
  • microsoft ドメインなら products と ## 顧客への影響

テンプレート:

---
title: "知見のタイトル"
datetime: { エクスポート時刻 }
domain: microsoft | copilot
primaryCategory: { カテゴリ }
tags: [tag1, tag2]
products: [製品名] # microsoft ドメインのみ
references:
  - url: https://...
    title: ドキュメントタイトル
---

## 知見

(本文)

## 具体例

(コード例・構成例があれば)

## 顧客への影響

(microsoft ドメインで該当する場合:影響範囲・対応推奨)

Index Targets

各ドメインで解決した <resolved-root>\_index\knowledge-index.json を使う。

resolved-root は Markdown の出力 root と同じ場所を使う。root が決まるまでファイル作成と index 更新を開始しない。

ルール

  • エクスポート前に Get-Date -Format "yyyy-MM-ddTHH:mm:ss" を実行し、その結果を datetime に使用する
  • microsoft ドメイン: 公式ドキュメント URL(learn.microsoft.com)を必ず含める
  • microsoft ドメイン: Azure Updates の情報がある場合は updates URL も含める
  • microsoft ドメイン: 顧客対応で得た知見は個人情報・社名をマスクしてから記録する

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts12d3 checks · Risk SAFE
  • Gen Agent Trust Hub12d

    The skill is a utility for organizing and exporting session knowledge into structured Markdown files. It handles domain routing based on environment variables and session content. No malicious behaviors or security risks were identified.

  • Socket12d

    No alerts

  • Snyk12d

    Risk: LOW · No issues

Signed by skilld at 9bedf91. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 15 hours ago.

Activeupdated last month
disable-model-invocation
true
user-invocable
true
metadata
{
  "author": "yamapan (https://github.com/aktsmm)"
}

README badge

README badge for aktsmm/agent-skills/export-knowledge