Editing a symlinked SKILL.md never refreshes its imported shelf entry
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 52/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- go
- 領域
- cli, documentation, testing
調査の方向性
Read #1410 alongside internal/skills/skills.go:277 and internal/resident/skills.go:226, then trace ReconcileImportedSkills at :715. Add the linked-file case to an internal/resident test and run the relevant tests. Done means the chosen safe policy is consistent for reading and digesting, nonregular targets cannot block discovery, use-skill.md is aligned, and invalidates records the behavior.
索引モデルが issue の本文から書いたものです。
説明
Found on santos/dev2 at 008363c98 (#1410). It reaches dev when #1410 merges.
What happened
A skill folder containing a SKILL.md symlink to a regular file loads through the link. Its import digest omits that link, so changing the target leaves the active shelf fact unchanged at the next launch. The manual says an edited SKILL.md is read again. Linked folders are already handled at this head and are outside this issue.
Replication
Deterministic (no model). In an internal/resident test, create a valid skill file outside a skill folder, link the folder's SKILL.md to it, call ReconcileImportedSkills, edit the target text, and call reconciliation again. Compare the active fact's digest and description. Today they remain the first version. A regular-file control refreshes.
Field (real models). On a fresh home, attach that skill in codeaf chat, edit its target, relaunch, and ask a question that distinguishes the two bodies. Allow OPENROUTER_API_KEY, deepseek/deepseek-v4-flash, about a minute and a small charge.
Where
internal/skills/skills.go:277, readSkillFile, follows the link. internal/resident/skills.go:226, contentDigest, skips its nonregular directory entry; ReconcileImportedSkills compares that digest at :715. The contrary manual promise is in internal/manual/chat/use-skill.md.
The fix
Choose one link policy together with the launch-hang fix being made on #1410 (a committed SKILL.md or .claude/settings.json that links to /dev/tty or a FIFO blocks launch): either safely follow regular targets in both reading and digesting, or reject linked files in both. This issue covers the digest half of that policy.
Acceptance
- e2e: relaunching
codeaf chatafter a target edit uses the new skill body, or consistently reports that the linked file is unsupported. - Unit: a linked file and a regular file follow the same chosen policy, while a link to a nonregular target cannot block discovery.
- Align
use-skill.mdand record the changed behavior ininvalidates.
- 主要言語
- Go
- スター
- 115
- フォーク
- 14
- 平均マージ
- 9時間 38分
- マージ済み PR(30日)
- 730
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Agent-Field/CodeAF のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Agent-Field/CodeAF#1489 ·
-
area:chat bug good first issue sev:papercut
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Agent-Field/CodeAF#1470 ·
-
area:chat bug good first issue sev:papercut
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
Agent-Field/CodeAF#1469 ·
-
area:chat bug sev:papercut
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Agent-Field/CodeAF#1468 ·
-
area:tests bug hygiene sev:papercut
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Agent-Field/CodeAF#1460 ·
Agent-Field/CodeAF の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
bazel-contrib/rules_go#4726 · コメント 1 件 ·
-
area/auto-scaling area/monitoring area/ops-productivity kind/enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
Type/Improvement
難易度 1/5 1〜3時間 初心者へのやさしさ 90/100
OpenNSW/nsw-srilanka#522 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100