Agentic Feature Design
БесплатноБез исполняемых скриптовНе проверенDesigning features for the "Action Era" that are AI-accessible by default
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
Agentic Feature Design
Features in LivestockAI must now be designed for dual consumption: Humans (UI) and Agents (MCP/API).
1. The "Headless First" Rule
Every feature must be fully functional via Server Functions before any UI is built.
Test: Can an agent complete the entire user story using only bun run check-feature-x.ts (a script calling server functions)?
If yes -> Agent Ready.
If no (logic lives in React components) -> Refactor immediately.
2. Agent-Ready Server Functions
Server functions are the tools we give to agents. Document them accordingly.
export const createBatchFn = createServerFn({ method: 'POST' })
.inputValidator(batchSchema)
.handler(async ({ data }) => {
/* ... */
})
/**
* @description Creates a new livestock batch.
* @workflow
* 1. Check `getFarmFacilities` for space.
* 2. `createBatchFn`
* 3. Log initial `feed_record` if applicable.
*/
3. The "Intention" Pattern
Agents operate on Intent, not just data.
Instead of generic CRUD (updateBatch), expose semantic actions (graduateBatch, quarantineBatch).
// ❌ Generic
updateBatch(id, { status: 'sold' })
// ✅ Semantic (Agent Friendly)
markBatchAsSold(id, { date, price, customer })
Semantic actions allow agents to:
- Understand the consequences of the action.
- Perform specialized validation (e.g. "Can't sell a quarantined batch").
4. Approval Loops (Human-in-the-Loop)
Agents need a standard way to ask for permission for high-stakes actions (e.g., ordering feed, selling stock).
The ApprovalRequest Entity:
agentId: Who is asking?action: JSON payload of the server function to call.summary: Human-readable explanation ("I want to order 50 bags of Starter Feed").status: PENDING | APPROVED | REJECTED
5. Metadata for Context
All major entities (Batches, Sales) should have an ai_metadata JSONB column.
Agents use this to store reasoning ("Predicted harvest date change due to low feed intake").
Do not show this raw JSON to users, but use it to power UI "Insights".
Related Skills
three-layer-architecture- Where the logic livesfeature-structure- How to organize the files
Установить Agentic Feature Design в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл Agentic Feature Design?
Designing features for the "Action Era" that are AI-accessible by default
Как установить скилл Agentic Feature Design?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Agentic Feature Design запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic