plang
БесплатноБез исполняемых скриптовНе проверенExpert guidance for Plang programming language (plang.is). Use when the user asks about Plang syntax, wants to generate Plang code, needs help debugging Plang…
Об этом скилле
Plang Programming Language
Overview
Plang is a natural language programming language that uses pseudo-code syntax and goal-based architecture. Each file represents a "goal" containing steps written in natural language. Use this skill when working with Plang code generation, debugging, or architectural guidance.
Quick Start
For comprehensive syntax and examples, read the appropriate reference files:
- Basic syntax: Read syntax.md for variable handling, database operations, HTTP requests, control flow
- Common patterns: Read patterns.md for proven implementation patterns
- Database schemas: Read database.md for table creation and data modeling
Core Concepts
Goal Structure
Goals are Plang's fundamental unit. Each goal is a file containing steps:
GoalName
- step 1 description
- step 2 description
- step 3 description
Natural Language Steps
Steps are written in natural language with specific patterns Plang recognizes:
ProcessOrder
- select * from orders where id=%orderId%, return 1, write to %order%
- if %order% is empty then
- throw "Order not found"
- call goal ValidateOrder
- update orders set status='processed' where id=%orderId%
Key Design Principles
- SQLite-first: Presume SQLite for all database operations unless specified
- Goal-based: Break functionality into discrete goals (files)
- Natural language: Write steps as readable instructions
- Variable passing: Use
%variableName%syntax throughout - Error handling: Use
on errorclauses and validation
When to Generate Plang Code
Generate Plang goals when the user:
- Asks to "create a Plang goal for..."
- Requests database operations (Plang excels at CRUD)
- Needs API integration code
- Wants to build web applications with UI
- Requires LLM integration
- Needs file processing workflows
- Wants event-driven architectures
Code Generation Guidelines
1. Start with Clear Goal Names
CreateUser ✓ Clear, action-oriented
ProcessPayment ✓ Verb + noun pattern
GetUserData ✓ Specific purpose
DoStuff ✗ Too vague
Main ✗ Not descriptive
2. Use Proper Variable Syntax
✓ %userId%
✓ %order.id%
✓ %user.email%
✓ %request.body.name%
✓ %Settings.ApiKey%
✓ %now%
✗ userId (missing % delimiters)
✗ %user-id% (use camelCase or underscores)
3. Follow Database Conventions
✓ - select * from users where id=%userId%, return 1, write to %user%
✓ - insert into orders, status='pending', amount=%total%, write to %orderId%
✓ - update products set price=%newPrice% where id=%productId%
✗ - query the users table (too vague)
✗ - get user by id (missing proper syntax)
4. Structure Complex Goals Properly
For complex operations, break into sub-goals with option of parameters:
ProcessOrder
- call goal ValidateOrder
- call goal CalculateTotal id=%contractId%
- call goal CreateTransaction
- call goal SendConfirmation
5. Use Transactions Appropriately
ProcessPayment
- begin transaction "users/%userId%"
- insert into orders ...
- insert into orderItems ...
- call goal ChargeCard
on error call RollbackOrder
- end transaction
Common Task Patterns
Database CRUD
CreateRecord
- insert into table, field1=%value1%, field2=%value2%, write to %id%
ReadRecord
- select * from table where id=%id%, return 1, write to %record%
UpdateRecord
- update table set field=%newValue% where id=%id%
DeleteRecord
- delete from table where id=%id%
API Integration
CallExternalApi
- post %Settings.ApiUrl%/endpoint
headers:
"X-API-key": "%Settings.ApiKey%"
data: {
"field": "%value%"
}
on error call HandleApiError
write to %result%
Form Processing
HandleFormSubmission
- validate %request.body.email% is not empty, "Email required"
- validate %request.body.amount% is not empty and larger than 0
- insert into submissions, email=%request.body.email%, amount=%request.body.amount%
- [ui] render "success.html", navigate
File Processing
ImportCSV
- read data.csv, first row is header, write to %rows%
- foreach %rows% call ProcessRow item=%row%
ProcessRow
- insert into imported_data, column1=%row.header1%, column2=%row.header2%
Debugging Plang Code
Common Issues
Variable not found:
- Ensure variables are written to before reading:
write to %varName% - Check variable scope (variables from sub-goals need to be returned)
Database errors:
- Verify table exists and columns match
- Check data types match column definitions
- Ensure foreign key relationships are valid
Goal not found:
- Check file path is correct (relative paths supported)
- Verify goal name matches filename (case-sensitive)
HTTP errors:
- Add error handlers: `on error status code = 404, call HandleNotFo
Установить plang в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл plang?
Expert guidance for Plang programming language (plang.is). Use when the user asks about Plang syntax, wants to generate Plang code, needs help debugging Plang goals, wants to understand Plang patterns, or is working on Plang projects. Plang is a natural language pseudo-code language with goal-based architecture using SQLite databases.
Как установить скилл plang?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл plang запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic