agentleFS
mirukymiruky/harness-sample/.agents/skills/sync-specs/SKILL.md

sync-specs

Skill0 starsChanged yesterdayMITView on GitHub

docs/specs/ の仕様を Confluence へ書き込み、写しが一致しているかを確かめる。「仕様を Confluence に反映して」「Confluence と合っているか確かめて」と頼まれたとき、終了前のフックに未反映を指摘されたときに使う。

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. thunderkds/claude-skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository5 other files it gives its agents.

The file

Files
SKILL.md

仕様を Confluence へ書き込み、一致を確かめる

元は docs/specs/ の Markdown で、Confluence は写し。ふだんは push のたびにCIが tools/docs_sync.py で書き込む。 このスキルは、APIが届かない環境で、同じことをMCPのツール(atlassian)で行うための手順。 ページの全文を取得すると、その文字が全部コンテキストに入る。取得は、必要になったページだけにする。

書き込む

  1. uv run python tools/specs_sync.py status を実行する。挙がったファイルだけが対象。0件ならここで終わる。
  2. 対象のファイルごとに uv run python tools/specs_sync.py payload <ファイル> を実行し、出力をそのまま本文にする。自分で書き直さない。
  3. 台帳(docs/specs/ の .sync.json)にページIDがあれば updateConfluenceContent、なければ createConfluenceContent で書き込む。題名は Markdown の1行目の見出し。ページを探すための検索はしない。
  4. 書き込んだページだけを getConfluenceContent で取得し、本文を uv run python tools/docs_sync.py verify-body <ファイル> の標準入力へ渡す。APIで書いたときと同じ照合(sha256 と全文)で、「一致」と出ることを確かめる。出なければ書き込み直す。
  5. 一致したら、ページIDと版を uv run python tools/specs_sync.py record <ファイル> <ページID> <版> で記録する。

書き込んでいないページの一致を確かめる

  1. listConfluenceContentVersions で、ページのいちばん新しい版の番号だけを取得する。本文は取得しない。
  2. uv run python tools/specs_sync.py check <ファイル> <版> を実行する。「一致」と出たら、そのファイルは終わり。
  3. 版が進んでいたときだけ、diffConfluenceContentVersions で、台帳の版といまの版の差分を取得する。全文は取得しない。
  4. 差分の内容を人に報告する。元は Markdown なので、指示がなければ「書き込む」の手順でページを書き直す。画面での変更を残すと決まったら、先に Markdown へ写す。

してはいけないこと

  • 確認のために、全ページを getConfluenceContent で取得する
  • 台帳と一致しているファイルを書き込み直す
  • payload の出力を要約したり、整形し直したりしてから書き込む
  • 照合を通さずに、台帳へ記録する

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.