Skip to content

opencode install missing /graphify skill trigger instruction in AGENTS.md #827

Closed

Description

@hobo0cn

Bug

graphify opencode install writes AGENTS.md with rules about reading GRAPH_REPORT.md and using graphify query, but omits the critical /graphify skill trigger instruction. This means typing /graphify in OpenCode does nothing — the skill is never loaded.

What graphify opencode install currently writes

## graphify

This project has a knowledge graph at graphify-out/ with god nodes, community structure, and cross-file relationships.

Rules:
- ALWAYS read graphify-out/GRAPH_REPORT.md before reading any source files, running grep/glob searches, or answering codebase questions. The graph is your primary map of the codebase.
- IF graphify-out/wiki/index.md EXISTS, navigate it instead of reading raw files
- For cross-module "how does X relate to Y" questions, prefer `graphify query "<question>"`, `graphify path "<A>" "<B>"`, or `graphify explain "<concept>"` over grep — these traverse the graph's EXTRACTED + INFERRED edges instead of scanning files
- After modifying code, run `graphify update .` to keep the graph current (AST-only, no API cost).

What it should also write

- **When the user types `/graphify`, invoke the Skill tool with `skill: "graphify"` before doing anything else.** This loads the full graphify pipeline instructions from `~/.config/opencode/skills/graphify/SKILL.md`.

Why this matters

OpenCode and Claude Code have different skill triggering mechanisms:

Platform Mechanism What graphify install does
Claude Code PreToolUse hook in settings.json ✅ Intercepts Glob/Grep calls, auto-triggers skill
OpenCode AGENTS.md only (no PreToolUse hook for skills) ❌ Missing trigger instruction

The tool.execute.before plugin (graphify.js) only injects a bash echo reminder — it does not trigger the skill. Without the explicit trigger instruction in AGENTS.md, the agent has no way to know that /graphify should invoke the skill tool.

Fix

Add the trigger instruction to the AGENTS.md template in the opencode install command, matching the same pattern already used in claude install (which writes a similar trigger to CLAUDE.md).

Environment

  • graphify version: 0.7.15
  • Platform: OpenCode
  • OS: macOS

Activity

  1. added a commit that references this issue on May 12, 2026
  2. safishamsi commented on May 12, 2026

    @safishamsi
    Member

    Fixed in v0.7.16 — the /graphify skill trigger instruction is now included in _AGENTS_MD_SECTION, affecting all 7 AGENTS.md platforms. Run graphify opencode install (or your platform's install command) to pick up the updated AGENTS.md.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions