@tank/rule-creator

Design enforceable Tank rule atoms with YAML frontmatter and event bindings.

1|1|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/tankpkg/packages --skill tank-rule-creator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: @tank/rule-creator
Source: https://github.com/tankpkg/packages/tree/main/skills/rule-creator
Command: npx skills add https://github.com/tankpkg/packages --skill tank-rule-creator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It helps you define machine-enforced rules that control agent behavior with clear block, warn, and allow policies instead of custom code.

Core Features & Use Cases

  • Rule Atom Authoring: Create self-contained rule atoms with event bindings, match logic, policies, reasons, and extensions.
  • Policy Design Guidance: Choose when to block, warn, or allow based on safety, quality, and operational risk.
  • Bundle Composition: Combine multiple rules and instruction atoms into layered policy sets for real projects.
  • Practical Scenarios: Use it for destructive command prevention, tool access control, code-style warnings, and mixed safety-plus-style governance.

Quick Start

Ask the Skill to draft a Tank rule bundle that blocks dangerous commands, warns on code-quality issues, and explains the policy in SKILL.md.

Frequently Asked Questions about @tank/rule-creator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent an AI agent from running dangerous shell commands without writing custom code?

To prevent dangerous shell commands without custom code, you define enforceable rule atoms using YAML frontmatter that bind to command events with match patterns and block policies. This replaces scripting with machine-enforced governance.

What is policy as code for agent safety and how does it work?

Policy as code for agent safety is a method of controlling agent behavior by defining block, warn, or allow rules in structured configuration files. It uses event bindings and match logic instead of procedural scripts to enforce operational governance.

How do I create a tool allow-list for AI agent file-write events?

You create a tool allow-list for file-write events by authoring rule atoms that bind to file-write actions and apply allow policies based on specific match patterns. This restricts agent capabilities to explicitly permitted operations.

Can I combine multiple agent safety rules into a single bundled policy set?

Yes, you can combine multiple agent safety rules into a single bundled policy set through bundle composition. This allows you to layer instruction atoms and rules together to create comprehensive governance for real projects.

When should I use warn policies instead of block policies for command gating?

You should use warn policies instead of block policies for command gating when addressing code-quality issues or style warnings, reserving block policies for strictly preventing destructive commands and high operational risks.