Ai toolkit rules

From softspark/ai-toolkit · View interactive version

Ai toolkit rules is an AI agent skill from the GitHub repository softspark/ai-toolkit. Mandatory engineering, security, testing, git, performance, quality, and response rules. Claude MUST load this skill for every technical, coding, debugging, review, architecture, DevOps, data, or file-editing task in Chat or Cowork.

How to use this skill

Skill file

AI Toolkit Rules

Apply every relevant rule below before acting. Treat MUST/NEVER language as mandatory.

Source: `app/rules/claude-toolkit-rules.md`

Claude Toolkit

Shared AI development toolkit — lifecycle hooks, safety constitution, multi-platform support.

Skill Tiers

Path Safety

by a user name. The literal prefix is deliberately not written out here: the

plugin export scans shipped files for exactly that pattern, so an example of

the mistake would be indistinguishable from the mistake.

User Preferences

Source: `app/rules/edit-discipline.md`

Edit Discipline & Reviewable Changes

Edit files with the editing tools, not the shell

Use the edit and write tools to change a file. Do not rewrite tracked files

through bash with sed, awk, tee, a heredoc, or > redirection.

This is not a style preference. A shell rewrite is opaque to the host: the

session records a command, not a change. An edit call records which file

changed and how, so the interface can render it, a reviewer can read it, and a

later turn can cite it. A sed line records none of that, and the only way to

find out what happened is to read the file again.

The shell remains correct for what it is for: running builds, tests, linters,

git, package managers, and generators that own their own output.

Show the change before calling the work done

Before reporting a file-changing task as finished, show what changed:

git diff -- <paths>          # tracked files
git status --short           # what is new or removed

Paste the diff into the reply, or state precisely why it is too large and

summarise it by file with the counts. A task that reports success without

showing the change asks the reader to take the result on trust, and the reader

is the one who has to decide whether to commit it.

For an untracked file, show the content you wrote, not a description of it.

Why both halves matter together

Editing through the tools makes a change recordable; showing the diff makes it

reviewed. Either alone leaves the person deciding whether to ship blind to

something they are accountable for.

Source: `app/rules/git-conventions.md`

Git Conventions

Source: `app/rules/output-mode.md`

Output Mode

output-mode: concise

Default response mode for this project is concise. The brand-voice skill (when present in ai-toolkit) auto-loads its concise rules; assistants without that skill should still apply the directives below.

Concise Mode Directives

When to escalate to verbose

How to override

Source: `app/rules/quality-gates.md`

Quality Gates & Mandatory Practices

MANDATORY PRACTICES

  1. Plan First: Tasks >1h require Plan, Success Criteria, and Pre-Mortem.
  2. Quality Gates:
  1. Security: No secrets in code, sanitization, auth z/n.

Source: `app/rules/common/coding-style.md`

Universal Coding Style

Principles

Naming

Functions

File Organization

Comments

Formatting

Surgical Changes

No Dead Code (Constitution Art. VI.1)

Fix Every Found Bug (Constitution Art. VI.2)

Goal-Driven Execution

1. [Step] → verify: [check]

JSON Wire Format Conventions

Anti-Patterns to Avoid

Source: `app/rules/common/git-team.md`

Git Team Workflow Rules

These rules assume more than one person merges into main. They ship only with

the strict profile; a solo maintainer who commits straight to main is not

doing anything wrong, and a reviewer that keeps flagging "use a feature branch"

in that setting is noise. The solo-safe core (commit format, no secrets, no

force-push) lives in git-workflow.

Branching

Pull Requests

Code Review

Source: `app/rules/common/git-workflow.md`

Git Workflow Rules

Solo-safe core: everything here holds whether one person or twenty merge into

main. Branching, pull-request, and review conventions for teams live in

git-team and ship only with the strict profile.

Commit Messages

Commit Practices

Tags and Releases

Recovery

Source: `app/rules/common/performance.md`

Universal Performance Rules

Mindset

Database

Caching

I/O and Network

Memory

API Performance

Monitoring

Source: `app/rules/common/security.md`

Universal Security Rules

Input Validation

Authentication

Authorization

Secrets Management

Secrets at Rest

Commercial Messages (GDPR / ePrivacy)

SQL Injection Prevention

XSS Prevention

API Security

Dependencies

Logging

Source: `app/rules/common/testing.md`

Universal Testing Rules

Test Structure

Test Organization

What to Test

What NOT to Test

Mocking

Test Quality

API Error Paths

Coverage

Test Data

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.