AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Add Playbook Rule

skill-the-alien-club-claude-workflows-add-playbook-rule · by the-alien-club

Interactively add a new architectural rule to a repo's playbook directory. Guides the user through defining the rule, forbidden patterns, and examples, then writes a properly-formatted .md file into the playbook.

No reviews yet
0 installs
20 views
0.0% view→install

Install

$ agentstack add skill-the-alien-club-claude-workflows-add-playbook-rule

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-the-alien-club-claude-workflows-add-playbook-rule)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Add Playbook Rule? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Add Playbook Rule

A playbook is a directory of .md files, one per architectural rule. This skill guides the user through authoring a new rule and writes it to the correct playbook directory.


Step 1 — Find the Target Playbook

find . -type d -name playbook | grep -v node_modules | grep -v .git

If multiple, ask the user which one. If none, ask for the path.


Step 2 — Check for Duplicates

Read all existing .md files (first 20 lines each) to understand current coverage. If the user's rule is already covered, name the file and ask whether they want to extend it or add a distinct complementary rule.


Step 3 — Elicit the Rule

Use AskUserQuestion to collect:

  1. Rule name — slug, kebab-case, used as filename (e.g. error-handling, service-boundaries)
  2. The rule in one sentence — what must always be true?
  3. The motivation — what breaks when it is violated? Name the failure mode.
  4. A correct example — code showing the rule followed
  5. A forbidden example — code showing the violation, with the specific problem annotated

If the user gives a vague rule, ask for a concrete forbidden pattern first — that surfaces the real constraint.


Step 4 — Draft the Rule File

Structure:

# [Title] Rule

## Rule

[One-paragraph statement. Direct, no hedging. State what is forbidden.
Name the consequence — not a style issue, a correctness/security/maintainability issue.]

---

## Why

[2–4 sentences: what breaks when this rule is violated. Be specific — name the failure mode.]

---

## Correct Pattern

```[lang]
// ✅ [Short description]
[code example]

Forbidden Patterns

```[lang] // ❌ [Violation description] — [specific harm] [code example]


---

## Rules Summary

- [Bullet: precise, imperative]
- [...]

---

## Relation to Other Rules

[Optional cross-references to other playbook files.]

Quality checks before writing:

  • No weasel words ("try to", "prefer", "consider")
  • Every forbidden pattern has a named harm — not "messy" or "unclear"
  • The rule is falsifiable — a reviewer can determine pass/fail without judgment calls
  • Correct pattern is valid syntax
  • File is between 40 and 200 lines

If any check fails, iterate with the user.


Step 5 — Confirm and Write

Show the full draft. Once approved, write to [playbook-path]/[rule-name].md.

Confirm with the exact path written, then:

> Rule added. Run /review_playbook on any commit or MR to enforce it.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.