skill(blog): codex prompt should discover paths, not trust examples#645
Merged
Conversation
Two edits to .claude/skills/blog/SKILL.md and .agents/skills/blog/SKILL.md (kept in sync): 1. Phase 4 source-code audit step — instruct the auditor to discover the repo layout first via `gh api repos/<org>/<repo>/git/trees/ main?recursive=1` before assuming any path. Names the example-paths- are-stale failure mode explicitly (`langchain_runcycles/...` vs `src/langchain_runcycles/...`). 2. Phase 9a codex prompt template — replace the prescribed `gh api repos/<org>/<repo>/contents/...` example (which codex typically cannot shell to under read-only sandbox) with explicit instructions to discover paths and tell codex its read-only sandbox blocks `gh` calls, so it should route through its GitHub connector. Triggered by codex's open question in the v0.2.0 LangChain runcycles review (PR #644): "Should the source-path references in the review prompt be updated from `src/langchain_runcycles/...` to `langchain_runcycles/...`?" — same class of fragility the skill's own source-audit clause was meant to catch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Small skill correctness fix triggered by codex's open question on PR #644 (LangChain
cost_fnpost review).Codex flagged that example file paths in the source-audit prompt (
src/langchain_runcycles/...) didn't match the package's actual layout (langchain_runcycles/...— nosrc/prefix). The skill currently encourages prescribed-path lookups, which fail silently when packages restructure or use different conventions.Two surgical edits to both
.claude/skills/blog/SKILL.mdand.agents/skills/blog/SKILL.md(kept in sync):1. Phase 4 source-code audit step
Now tells the auditor to discover the repo layout first via
gh api repos/<org>/<repo>/git/trees/main?recursive=1before assuming any path. Names the failure mode explicitly with the LangChain runcycles example.2. Phase 9a codex prompt template
Replaces the prescribed
gh api repos/<org>/<repo>/contents/...example (which codex's read-only sandbox typically cannot shell to anyway) with explicit instructions to:ghshell calls; it routes through its internal GitHub connector insteadWhy this is small but useful
This is exactly the class of trap the skill's own source-audit clause was designed to catch — assume verbatim source-of-truth at face value, miss the underlying state drift. Codex caught it in PR #644 and the skill now bakes the lesson in.
Test plan
/blogskill flow — this is additive guidance, not a workflow change