Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

alps

FreeNo executable scriptsNot checked

Create, validate, and improve ALPS profiles. Generate from natural language descriptions, validate existing profiles, and get improvement suggestions.

diegosouzapwby diegosouzapw★ 68 GitHub stars

About this skill

ALPS Profile Assistant

Generate, validate, and improve ALPS profiles for RESTful API design.

Ideal ALPS Profile

Goal: An ALPS that someone unfamiliar with the app can read and understand.

What Makes a Good ALPS

  1. States = What the user sees

    • ProductList - viewing a list of products
    • ProductDetail - viewing one product
    • Cart - viewing cart contents
  2. Transitions = What the user does

    • goProductDetail - select a product
    • doAddToCart - add to cart
  3. Self-documenting

    • title explains the purpose
    • doc describes behavior and side effects
    • No need to read code to understand
  4. No unreachable states

    • Every state has an entry point
    • Orphan states indicate design mistakes
  5. Necessary and sufficient

    • No over-abstraction
    • Describes semantics, not implementation
    • No HTTP methods or URLs

What to Avoid

  • Mechanical CRUD listings without meaning
  • Implementation details leaking in
  • States without transitions (can't draw a diagram)
  • Excessive documentation nobody reads

How to Use

This skill responds to natural language requests:

Generate ALPS from Natural Language

  • "Create an ALPS profile for a blog application"
  • "Generate ALPS for an e-commerce cart system"
  • "Design an ALPS profile for user authentication"

Validate Existing Profile

  • "Validate this ALPS profile" (with file path or content)
  • "Check my ALPS file for issues"
  • "Review the ALPS profile at docs/api.json"

Get Improvement Suggestions

  • "Improve this ALPS profile"
  • "Suggest enhancements for my ALPS"
  • "How can I make this ALPS better?"

ALPS Structure Reference

Three Layers of ALPS

  1. Ontology - Semantic descriptors (data elements)

    • Atomic data fields with type="semantic" (default)
    • Should have id, title, and optionally doc and def (schema.org link)
  2. Taxonomy - State descriptors (screens/pages)

    • Composite descriptors containing semantic fields and transitions
    • Represents application states (e.g., HomePage, ProductDetail, Cart)
  3. Choreography - Transition descriptors (actions)

    • type="safe" - Read operations (GET)
    • type="unsafe" - Create operations (POST) - not idempotent
    • type="idempotent" - Update/Delete operations (PUT/DELETE)
    • Must have rt (return type) pointing to target state

Naming Conventions

Type Prefix Example
Safe transition go goToHome, goProductList, goSearchProducts
Unsafe transition do doCreateUser, doAddToCart, doLogin
Idempotent transition do doUpdateUser, doDeleteItem, doRemoveFromCart
State/Page PascalCase HomePage, ProductDetail, ShoppingCart
Semantic field camelCase userId, productName, createdAt

Safe Transition Naming Rule

IMPORTANT: Safe transitions (go*) MUST include the target state name in their id.

  • rt="#ProductList" → id must be goProductList (or goToProductList)
  • rt="#UserProfile" → id must be goUserProfile (or goToUserProfile)

Invalid examples:

  • goStart with rt="#ProductList" - Wrong! Should be goProductList
  • goNext with rt="#Checkout" - Wrong! Should be goCheckout

This rule ensures consistency and makes the diagram self-documenting. When a transition has no source state (entry point), it will be displayed as originating from UnknownState in the diagram.

Determining idempotent: PUT vs DELETE

Context clues for AI inference:

PUT (Update) indicators:

  • update, edit, modify, change, set, replace
  • Example: doUpdateProfile, doEditComment, doSetQuantity

DELETE indicators:

  • delete, remove, cancel, clear, destroy
  • Example: doDeleteUser, doRemoveFromCart, doCancelOrder

Generation Guidelines

When Creating ALPS from Natural Language

IMPORTANT: Structure the ALPS file in three blocks in this order:

  1. Identify Entities (Ontology - Semantic definitions)

    • Extract nouns: user, product, order, cart, etc.
    • Define atomic fields for each entity
    • Add def links to schema.org where applicable
    • Add doc for validation rules, formats, constraints
  2. Identify States (Taxonomy - Inclusion relationships)

    • Map user journey: login -> home -> browse -> cart -> checkout
    • Each state contains relevant fields and available transitions
    • Use PascalCase for state names
    • Add doc explaining what user sees and available actions
  3. Identify Transitions (Choreography - State transitions)

    • Safe: navigation, viewing, searching (prefix: go)
    • Unsafe: creating new resources (prefix: do)
    • Idempotent: updating or deleting resources (prefix: do)
    • Add doc explaining behavior, side effects, preconditions
  4. Add Documentation

    • Every descriptor MUST have a meaningful title
    • Add doc when title alone cannot fully explain the descriptor:
      • **Semantic fi
Full SKILL.md on GitHub

Install alps in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

metadata.json

FAQ

What does the alps skill do?

Create, validate, and improve ALPS profiles. Generate from natural language descriptions, validate existing profiles, and get improvement suggestions.

How do I install the alps skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the alps skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare alps with