Skip to content

[Feature]: skill.md — "Do not skip steps" contradicts the documented skips; shouted MANDATORY Agent-tool line; API-key note stated twice #4061

Closed

Description

@nabki

Problem or use case

graphify/skill.md (generated from tools/skillgen/fragments/core/core.md) gives the agent instructions that conflict:

  1. "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 when graphify-out/graph.json exists 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 a graphify query.
  2. :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.
  3. API-key note stated twice — :163 and :170 say 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.py detect_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:

  1. 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)."
  2. 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."
  3. 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

  1. github-actions commented on Oct 4, 2026

    @github-actions

    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.

  2. added
    good first issue
    help wanted
    on Oct 4, 2026
  3. venkatpachala commented on Oct 5, 2026

    @venkatpachala

    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

  4. nothariharan commented on Oct 23, 2026

    @nothariharan
    Contributor

    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 in tools/skillgen/gen.py, and regenerates the 14 split-host skill artifacts plus expected snapshots. --monolith-roundtrip and --check both pass, and tests/test_skillgen.py is 71/71. Fresh branch from v8 @ c588b72d (0.9.94). Supersedes #4110.

  5. safishamsi commented on Oct 30, 2026

    @safishamsi
    Member

    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.

  6. nabki commented on Oct 31, 2026

    @nabki
    Author

    Thanks for the fix @safishamsi !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions