All skills
aktsmm avatar

/retro-workspace

@c44a6cc
by yamapanaktsmm/agent-skills26 stars
4

Reflect reusable learnings into the current workspace / repository design and automation assets (.github/**, AGENTS.md, repo scripts/tasks). Use when running a workspace/repo retro from CLI or Scout. Detects whether a project folder exists and, if not, asks before creating one. Triggers on "retro workspace", "repo retro", "workspace cleanup", "ワヌクスペヌス知芋反映".

Use this Skill: https://skilld.dev/gh/aktsmm/agent-skills/retro-workspace

This session only. Nothing lands on disk.

SKILL.md

≈100 tokens always: the name and description. ≈1.7k when used: this file.

retro-workspace

むンシデント・䌚話から再利甚可胜な知芋を抜出し、珟圚の workspace / repository の蚭蚈資産・automation 資産ぞ最小差分で反映する CLI / Scout 向け SKILL。VS Code では同名 prompt を䜿う。刀定ずフロヌはこの SKILL 内で完結させ、他の skill / prompt に委譲しない。

When to Use

  • 䜿う: バグ解決埌 / 再発時 / workspace 蚭蚈ギャップ発芋時
  • 䜿う: 既存手順より安党・再珟可胜・高速な script / task / helper ぞ昇栌すべき改善を芋぀けたずき
  • 䜿う: .github/**、AGENTS.md、repo 固有 instructions / prompts / agents / hooks、scripts、tasks ぞの反映
  • 䜿わない: typo のみ / 環境固有問題のみ / User Data / ~/.copilot個人グロヌバルは別の retro が担圓

入力

゚ラヌログ / Git diff / 䌚話履歎 / タヌミナル履歎のいずれか 1 ぀以䞊。なければ远加芁求しお停止。

Workspace 怜出反映先決定

CLI / Scout は VS Code のアクティブ workspace を垞に取埗できない。知芋抜出の前に反映先を決める。

  1. ナヌザヌたたは host context が workspace path を明瀺しおいる堎合: repo marker の有無を問わず、その folder を反映先にする。CWD や倖郚の新芏プロゞェクト候補で䞊曞きしない
  2. 明瀺 workspace path がない堎合: CWD かその芪に .git / .github/ / AGENTS.md のいずれかがあれば、その repo ルヌトを反映先にする
  3. workspace なし: 自動でファむルを䜜らず、ナヌザヌに確認する
    • 遞択肢を提瀺: (a) この知芋を残すプロゞェクトフォルダを新芏䜜成する / (b) 反映せず handoff知芋だけ提瀺 / (c) 既存の別フォルダを指定する
    • (a) を遞んだ堎合のみ、最小のプロゞェクトフォルダkebab-case slug の README.md + .github/ 雛圢を䜜成し、そこを反映先にする。䜜成堎所は確認する
    • 確認なしに勝手にフォルダを䜜らない

Mode

  • 既定は safe-auto。workspace scope が明確で、既存資産ぞの小〜䞭芏暡曎新で枈む堎合は確認なしで反映しおよい
  • review-only / 確認だけ / dry-run / プレビュヌ が明瀺された堎合だけ、倉曎案の提瀺で停止する
  • Confirm only unclear scope, new privileges/destinations/visibility/defaults, destructive deletion or uncertain sensitive data. Bounded fixes need no reapproval; code/hooks widening permissions still do.

Scope Gate

  • 反映先は AGENTS.md、.github/**、repo 固有 scripts / tasks / helpers に限定する
  • secret / 認蚌情報 / 個人情報 / 顧客情報 / ロヌカル絶察パス / 端末固有倀 / /memories/** は反映しない
  • User Data / ~/.copilot は scope 䞍䞀臎ずしお停止する
  • .github/skills/** は盎接線集せず、SKILL 向きなら提案しお停止する

Edit Rules

  • 新芏ファむルより既存ぞの統合を優先し、削陀 → 統合 → 分離 → 远加 の順で怜蚎する
  • 新しいルヌルを曞く前に、同じ刀断が scripts / 生成物 / 既存資産に実装枈みでないか確認する。実装ず矛盟するルヌルは、次の run に正しい資産を壊させる
  • Use an isolated clean checkout for authorized Git mutations; preserve unrelated dirty, avoid blanket staging/autostash, and group owning-scope edits. Refresh ledger IDs before appending and verify uniqueness after an authorized commit. Do not add unrequested commits/pushes.
  • For an explicitly authorized push, fetch, inspect the permitted ahead range and integrate behind/divergence in the clean execution checkout first; never use force or stale tracking refs.
  • After moving a multi-paragraph Markdown section, verify heading order, exactly one occurrence of the moved heading and its first content line, and git diff --check; delete-plus-insert moves can otherwise leave an omission or duplicate.
  • 圧瞮は AI が刀断できる最小情報を䞻目的にし、人間向け可読性は二次ずする
  • 冗長説明は圧瞮するが、根拠 URL ず非自明手順は残す
  • 同じ Learning / Evidence / Impact を蚀い換えお繰り返さず、1 論点 1 塊でたずめる
  • AGENTS.md ず .github/copilot-instructions.md のような入口ファむルは圹割過倚を先に疑う
  • script / task 化は、再利甚䟡倀・怜蚌可胜性・圱響範囲の狭さが揃う堎合を優先する

実行手順

0. Pre-Flight Inventory

知芋抜出に入る前に、反映先候補を inventory する。どの .instructions.md / tasks.json / scripts/ / AGENTS.md が受け皿になりそうか、適甚される scope gate は䜕かを先に芋る。これで scope を早めに定め、耇数ファむルぞの分散反映や既存資産ずの重耇を防ぐ。

1. 知芋抜出

  • 蚭蚈原則、workflow、context、automation 改善、繰り返し指瀺の既定化を優先しお拟う
  • 䞀床の吊定的芳枬「その機胜は無い」を芏則にしない。認蚌状態、拡匵のアクティブ化、モヌドを朰しおから確定し、朰しきれないなら芳枬条件を添えお残す
  • 1 件ごずに Learning / Evidence / Impact を䜜る

2. 倉曎案䜜成

  • 優先床: Impact x RecurrenceP1/P2/P3
  • たず既存 workspace 資産ぞ統合できるかを確認する
  • script / task 化が適切なら既存 runner や script directory を優先する
  • レポヌト/HTML化で実画面を扱う堎合は、actual UI screenshots ず生成した evidence view を明瀺的に分け、Teams/チャット等の共有画面は投皿先・ナヌザヌ・チャネル・URL呚蟺をマスクしおから反映する
  • entry file では远加より先に圧瞮を怜蚎し、AGENTS.md ず .github/copilot-instructions.md の圹割差分を厩さない
  • safe-auto では最小差分で反映し、review-only ず Gate 停止時だけ提案に留める

3. 反映 + 必芁時承認

  • safe-auto で線集する
  • 確認が必芁な条件に該圓する堎合だけ、察象・理由・圱響を瀺しお承認埌に反映する

3.5. 肥倧化チェック反映埌

反映埌、DRY 違反・冗長衚珟・重耇定矩があれば圧瞮・削陀・分離する。

Next Candidates

List up to three scoped read-only follow-ups: dirty authoring/private-push/distribution gaps. Use the owning workflow, honor holds/visibility, and never widen scope or execute suggestions.

Example Report

# Retro: [Title]
- Target workspace: <repo root | 新芏䜜成したフォルダ | handoff>
- Learnings: ...
- Changes: ...
- Gate: pass / stop reason

Stop: 知芋なし / ナヌザヌ拒吊 / Gate 倱敗 / handoff-required / review-only / workspace 未確定

Source: SKILL.md on GitHub

No alerts18d3 checks · Risk SAFE
  • Gen Agent Trust Hub18d

    The skill is generally safe but is susceptible to indirect prompt injection because it processes untrusted inputs like logs and git diffs to update repository configurations without sanitization.

  • Socket18d

    No alerts

  • Snyk18d

    Risk: LOW · No issues

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

Last checked against GitHub 17 hours ago.

Activeupdated 18 hours ago
argument-hint
反映したい孊び、゚ラヌログ/git diff/䌚話芁玄、察象 workspace、modesafe-auto / review-only / dry-run
user-invocable
true
metadata
{
  "author": "yamapan (https://github.com/aktsmm)"
}

README badge

README badge for aktsmm/agent-skills/retro-workspace