/major-ai-skills:dense-shorthand-notationfrom major-ai-skills
Use documented compact notation for business rules or state transitions when readers can interpret it unambiguously.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Expressing complex state transitions, type signatures, and conditional business rules in natural English prose ("Whenever a user attempts to update their profile, if their role is admin that implies they can bypass the email verification check, which returns an authorized session...") consumes 25 to 40 tokens per rule.
Because modern LLMs are pre-trained on billions of lines of code, mathematics, and formal logic, they natively parse Symbolic Logic Shorthand (User.admin => BypassVerify -> Session(200)).
The Dense Shorthand Notation Protocol replaces wordy logical explanations with compact ASCII operators (=>, ->, ::, |, !), cutting prompt token footprint by 65% while eliminating natural language ambiguity.
┌─────────────────────────────────────────────────────────────┐
│ Logical Density Comparison │
│ │
│ Verbose English Prose (68 Tokens): │
│ "If the incoming request is authenticated and the user │
│ has the role of superuser or editor, then allow them to │
│ publish the post and return a status of 201 Created. │
│ Otherwise, if they are not authenticated, return 401, │
│ and if they lack permissions, return 403 Forbidden." │
│ │
│ Symbolic Shorthand Grammar (18 Tokens - 73.5% Cut!): │
│ • Auth & (Superuser | Editor) => Publish -> 201(Created) │
│ • !Auth => 401(Unauthorized) │
│ • Auth & !(Superuser | Editor) => 403(Forbidden) │
│ ↳ 18 tokens, 100% Mathematical Precision & Zero Ambiguity │
└─────────────────────────────────────────────────────────────┘
| Operator | Logical Meaning | Example Syntax | Natural Language Equivalent |
|---|---|---|---|
=> | Implication / Triggers | Event::PaymentSuccess => SendInvoice | "When payment succeeds, send invoice" |
-> | Returns / Transforms to | parse(str) -> Result<User, Err> | "Parses string and returns user or error" |
:: | Namespace / Scope | Auth::JWT::verify | "The verify method of the JWT module in Auth" |
| | Logical OR / Union | Role: Admin | Maintainer | "Role must be either Admin or Maintainer" |
& | Logical AND / Conjunction | Active & Verified | "User must be both active and verified" |
! | Logical NOT / Negation | !Cached => FetchDB | "If not cached, fetch from database" |
~> | Async Stream / Pipe | RawData ~> Clean ~> DB | "Pipes raw data into clean then into DB" |
Use when asking an agent to generate complex workflow or lifecycle code:
Implement the Order Lifecycle State Machine in TypeScript:
### State Transitions:
- `Draft + Submit => PendingPayment`
- `PendingPayment + (Stripe::Success) => Paid ~> DispatchJob`
- `PendingPayment + (Stripe::Failed | Timeout::15m) => Cancelled -> RestockInventory`
- `Paid + Ship => Fulfilled`
- `* + Admin::ForceCancel => Refunded`
Constraints: Strict TypeScript types, exhaustive switch, zero external dependencies.
Generate FastAPI route security dependencies:
- `GET /metrics` :: Role: SRE | Admin
- `POST /billing/refund` :: Role: Finance & Tier >= 2
- `DELETE /users/{id}` :: Role: Admin & !Target.isSuperuser
Specifying a 10-state e-commerce order management workflow:
| Specification Style | Input Tokens | Adherence / Precision | Generation Latency |
|---|---|---|---|
| Verbose English Prose | 620 tokens | 88% (Missed 1 timeout state) | 3.2 seconds |
| Symbolic Shorthand Grammar | 145 tokens | 100% (Zero edge cases missed) | 0.8 seconds |
MANDATORY: When documenting state transitions, permission matrices, or algorithmic transformation pipelines, use symbolic shorthand operators (
=>,->,|,!). Maximize density and mathematical precision.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization.Other plugins' skills for the same job
/act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.