Repository navigation
Closed
Labels
Description
Problem or use case
graphify/skill.md (generated from tools/skillgen/fragments/core/core.md) gives the agent instructions that conflict:
- "Follow these steps in order. Do not skip steps." (
skill.md:59,core.md:56) follows the fast path at:53, which says to skip Steps 1–5 entirely whengraphify-out/graph.jsonexists and the request is a question. The steps then skip conditionally themselves (Step 0 only for a URL or several paths — "A plain local path skips this step"; Part B has its own "skip Part B entirely" fast path). An agent that follows instructions literally must break one of them; "do not skip" is the absolute one, so the cost is a needless rebuild instead of agraphify query. :214— "MANDATORY: You MUST use the Agent tool here. Reading files yourself one-by-one is forbidden … If you do not use the Agent tool you are doing this wrong." Current Claude models follow instructions closely and tend to over-apply stacked caps/absolutes — here, spawning subagents even when the code-only fast path or a tiny doc set makes Part B unnecessary. The reason (5–10× faster) is the load-bearing part.- API-key note stated twice —
:163and:170say the same thing in two blockquotes, and Bug: /graphify skill ignores detect_backend() — only uses Gemini, ignores OPENAI_API_KEY/ANTHROPIC_API_KEY/etc. the CLI supports #2513 reports the claim itself is inaccurate (llm.pydetect_backend()). Whatever Bug: /graphify skill ignores detect_backend() — only uses Gemini, ignores OPENAI_API_KEY/ANTHROPIC_API_KEY/etc. the CLI supports #2513 settles should appear once.
Proposed solution
In tools/skillgen/fragments/core/core.md, then uv run python -m tools.skillgen --bless:
- Replace "Follow these steps in order. Do not skip steps." with: "Run the steps in order. Skip a step only where it says so (the fast path above, Step 0 for a plain local path, Part B for a code-only corpus)."
- Replace the MANDATORY line with: "Dispatch semantic extraction with the Agent tool — one subagent per chunk; it is 5–10× faster than reading files yourself. Skip this when the Part B fast path applies."
- Merge the two API-key blockquotes into one, using whatever wording Bug: /graphify skill ignores detect_backend() — only uses Gemini, ignores OPENAI_API_KEY/ANTHROPIC_API_KEY/etc. the CLI supports #2513 lands on.
Alternatives considered
Fix only the contradiction in (1) and keep the absolute wording in (2) — resolves the conflict but keeps the over-application risk. Splitting the skill (#1641) is complementary, not a substitute.
Area
Skills or assistant integrations
Are you willing to submit a PR?
No, I just wanted to request it
Compatibility / behavior impact
Generated skills only (every graphify/skill*.md built from core.md changes on regenerate). No effect on node/edge IDs, cache semantics, graph.json schema, MCP output, or incremental updates.
Additional context
Related: #2513, #1641, #3768. Found in 0.9.53; confirmed unchanged on v8 HEAD (core.md:50/56/167).
Activity
github-actions commentedon Oct 4, 2026
Thanks for opening this issue, @nabki. A maintainer will take a look soon.
If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.
To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.
venkatpachala commentedon Oct 5, 2026
I’d like to work on this. I plan to clarify the documented skip conditions, make semantic agent dispatch conditional on the relevant extraction path, and consolidate the API-key guidance in the shared fragment, then regenerate and validate the affected skills. I noticed #3255 addresses provider routing for #2513; I’ll coordinate that overlap and avoid duplicating its implementation. @safishamsi
fix(skill): clarify conditional extraction instructions
fix(skill): preserve cached semantic merge guidance
nothariharan commentedon Oct 23, 2026
Opened #4721: #4721
Rewords "Follow these steps in order. Do not skip steps." to "Follow these steps in order unless the fast path above applies." in all three source fragments (
core.md,aider.md,devin.md), adds the reword to the sanctioned monolith-diff predicates intools/skillgen/gen.py, and regenerates the 14 split-host skill artifacts plus expected snapshots.--monolith-roundtripand--checkboth pass, andtests/test_skillgen.pyis 71/71. Fresh branch fromv8@c588b72d(0.9.94). Supersedes #4110.docs(skill): resolve the 'do not skip steps' contradiction (Graphify-…
docs(skill): resolve the 'do not skip steps' contradiction (Graphify-…
docs(skill): resolve the 'do not skip steps' contradiction (#4061)
safishamsi commentedon Oct 30, 2026
Fixed in v0.9.99 via #4721 (pip install graphifyy==0.9.99). The 'do not skip steps' instruction now says 'unless the fast path above applies.' Thanks for the report, @nabki.
nabki commentedon Oct 31, 2026
Thanks for the fix @safishamsi !