Skip to content
Back to skills

Refuse

ASecurity

Register a hard refusal as an STVC invariant. Any future tool_call whose args contain the refused phrase will be rejected pre-LLM. Substrate-stored — survives every session, every surface.

  • 10 stars
  • 0 votes
  • 2 copies
  • 3 views
  • Added September 3, 2026
ai-agentsbash

Works with

  • mcp

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add xgre1/troth --skill refuse --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Refuse?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Refuse
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/xgre1-refuse/badge)](https://www.skillsdirectory.com/skills/xgre1-refuse)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: refuse
description: Register a hard refusal as an STVC invariant. Any future tool_call whose args contain the refused phrase will be rejected pre-LLM. Substrate-stored — survives every session, every surface.
argument-hint: [phrase to refuse, e.g. "drop table" or "production db write"]
kind: deterministic
---

User wants to ban a class of action permanently:

> $ARGUMENTS

Writes a state_invariants row with predicate kind `tool_args_substring`,
severity `error`, phrase = `$ARGUMENTS`. The STVC validation gate in
`recordAction()` rejects every subsequent tool_call whose args contain
that phrase (case-insensitive substring). No LLM involvement — the
substrate enforces it structurally.

To list active refusals: `/invariants list`. To remove: `/invariants remove <id>`.

## Tool routing (both topologies)
The substrate tools this skill uses may be DIRECT in your tool list (names like
`troth_engram_record`, `troth_recall`, `troth_dialogue_recent`) OR behind the
troth-router gateway (app installs wire only: troth-router, troth-bash,
troth-cache, troth-hashline). If a named tool is NOT in your tool list, do NOT
conclude the substrate is down and do NOT fall back to file-based memory.
Route it through the router instead:
  1. `mcp_list({server: "troth-substrate"})` (or `"troth-memory"`) to see names.
  2. `mcp_call({server: "troth-substrate", tool: "<same troth_* name>", args: {...same args...}})`.
Substrate lives on server `troth-substrate` (engrams, recall, dialogue, slash);
mind/actions on `troth-memory`. Same tools, same args, one hop through mcp_call.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.