sqlew-plan-guidance

sqlew-plan-guidance is a skill for Claude Code from sqlew-io/sqlew-plugin. It costs 41 tokens per session (2,092 once invoked), scanned A, original, Apache-2.0.

A planning workflow that connects plan writing with sqlew, a tool for finding related past decisions and constraints.

In plain words
What is it for?
Use it when preparing a plan that should include keyword searches, related-context results, conflict checks, and queue monitoring.
Why use it?
It helps prevent plans from missing earlier context or contradicting decisions already recorded.

Skill for Claude Code

Written for Claude Code: UserPromptSubmit hook event. Also seen: names the ExitPlanMode tool; mentions Claude Code; mentions Codex.

Part of the sqlew plugin — 3 skills, 6 hooks, 1 MCP server shipped together

Good fit Use it when preparing a plan that should include keyword searches, related-context results, conflict checks, and queue monitoring.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sqlew-io/sqlew-plugin/sqlew-plan-guidance
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sqlew-io/sqlew-plugin --skill sqlew-plan-guidance
Clone the repo
git clone --depth 1 https://github.com/sqlew-io/sqlew-plugin

Made for: Claude Code.

Or install sqlew, the plugin that ships this one along with the rest of its 3 skills, 6 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sqlew-plan-guidance

README.md
[![agentmods](https://agentmods.dev/badge/skills/sqlew-io/sqlew-plugin/sqlew-plan-guidance/github.svg)](https://agentmods.dev/skills/sqlew-io/sqlew-plugin/sqlew-plan-guidance)
Your own site
<a href="https://agentmods.dev/skills/sqlew-io/sqlew-plugin/sqlew-plan-guidance"><img src="https://agentmods.dev/badge/skills/sqlew-io/sqlew-plugin/sqlew-plan-guidance/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sqlew-plan-guidance

Your own site · 80×15
<a href="https://agentmods.dev/skills/sqlew-io/sqlew-plugin/sqlew-plan-guidance"><img src="https://agentmods.dev/badge/skills/sqlew-io/sqlew-plugin/sqlew-plan-guidance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,092 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.02092
Opus 5 $0.00020 $0.01046
Sonnet 5 $0.00008 $0.00418
Haiku 4.5 $0.00004 $0.00209

Measured 11d ago against content hash cd64cf064a7c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

sqlew-plan-guidance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.hermes-plugin/skills/sqlew-plan-guidance/SKILL.md · 216 lines

How it starts

The opening of the file, as written. The whole thing — 216 lines — stays where its author put it; the contents beside it link to each section on GitHub.

REQUIRED: Suggest Search BEFORE Planning

CRITICAL: Before writing any plan, you MUST search for related context.

Step 1: Extract keywords from the user's task (e.g., migration, auth, database)

Step 2: Run suggest search:

suggest { action: "by_context", key: "<keyword>", tags: ["<relevant-tags>"] }
suggest { action: "by_context", target: "constraint", text: "<topic>" }

Step 3: Include results in plan (MANDATORY section):

## Related Context (from sqlew)

### Past Decisions
| Key | Value | Score |
|-----|-------|-------|
| path/to/decision | description | 85 |

> If empty: "No related decisions found for: <keywords>"

### Applicable Constraints
- **[category]**: constraint text (Priority: high)

> If empty: "No constraints found for: <keywords>"

FAILURE TO INCLUDE "Related Context" SECTION = INVALID PLAN


REQUIRED: Conflict Handling (Plan Overturns an Existing Decision)

If a decision found by the suggest search contradicts your new plan:

  1. Never silently ignore it. List the conflicting decision in the "Related Context" section and state that the plan overturns it.
  2. Read its context first: decision { action: "get", key: "<key>", include_context: true } — the old rationale may encode a constraint (upstream bug, compliance, past incident) your plan has not considered.
  3. Same key, new direction: register the new decision under the same key (sqlew keeps history). Explain in Rationale why the previous decision no longer applies.
  4. Different key: register the new decision, then deprecate the old one: decision { action: "set", key: "<old-key>", value: "Superseded by <new-key>", status: "deprecated" }

A stale decision that contradicts the code is worse than no decision — it becomes misinformation. Deprecating on reversal keeps the database trustworthy.


Grok Build Notes (v5.2+ / multi-trigger template v5.5+)

CRITICAL for Grok Build: UserPromptSubmit hook stdout is ignored (passive hook). Format guidance is delivered via this skill and sqlew-decision-format. The 📌/🚫 template block is written to plan.md as a file side-effect (not stdout).

Read the full file on GitHub · 216 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 216 lines · 41 tokens per session scan A cd64cf064a7c

Subscribe to this mod's changes

sqlew-plan-guidance is a skill published in the GitHub repository sqlew-io/sqlew-plugin (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 41 tokens to every session and 2,092 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

stuck

Diagnose frozen, stuck, or slow Qwen Code sessions on this machine. Scans for problematic processes, high CPU/memory usage, hung subprocesses, and debug logs. Use /stuck or /stuck to focus on a specific process.

QwenLM/qwen-code · 57 tokens

e2e-testing

Guide for running end-to-end tests of the Qwen Code CLI, including headless mode, MCP server testing, and API traffic inspection. Use this skill whenever you need to verify CLI behavior with real model calls, reproduce user-reported bugs end-to-end, test MCP tool integrations, or inspect raw API request/response…

QwenLM/qwen-code · 94 tokens

structured-debugging

Hypothesis-driven debugging methodology for hard bugs. Use this skill whenever you're investigating non-trivial bugs, unexpected behavior, flaky tests, or tracing issues through complex systems. Activate proactively when debugging requires more than a quick glance — especially when the first attempt at a fix didn't…

QwenLM/qwen-code · 85 tokens

terminal-capture

Automates terminal UI screenshot testing for CLI commands. Applies when reviewing PRs that affect CLI output, testing slash commands (/about, /context, /auth, /export), generating visual documentation, or when 'terminal screenshot', 'CLI test', 'visual test', or 'terminal-capture' is mentioned.

QwenLM/qwen-code · 66 tokens

batch

Execute batch operations on multiple files in parallel. Automatically discovers files, splits into chunks, and processes with parallel worker agents. Use /batch followed by operation and file pattern.

QwenLM/qwen-code · 37 tokens

computer-use

Control local desktop applications through Computer Use for tasks that require reading or operating app UI. Prefer purpose-built connectors, APIs, or CLIs when available.

QwenLM/qwen-code · 33 tokens