anysystem-design
npx skills add https://github.com/david-marstree/anysystem --skill anysystem-design
Agent 安装分布
Skill 文档
AnySystem Design – LLM Agent Skill
A comprehensive LLM agent skill for the AnySystem Design React component library. This skill enables AI assistants to help developers use the component library effectively.
Overview
AnySystem Design is a React component library with 22 components covering forms, layouts, navigation, and data display. This skill provides structured knowledge and examples for LLM agents to assist developers.
Installation
Option 1: NPX / BUNX Package (Recommended)
npx skills add david-marstree/anysystem
# or
bunx skills add david-marstree/anysystem
Then configure in your AI assistant:
{
"skills": {
"anysystem-design": {
"path": "node_modules/anysystem-design"
}
}
}
Option 2: Direct Clone
Clone this repository directly:
git clone git@github.com:david-marstree/anysystem.git
Option 3: Claude Code Skills
For Claude Code CLI, copy to your project’s .claude/skills/ directory:
cp SKILL.md .claude/skills/anysystem-design.md
cp skills/skill-definition.json .claude/skills/
Documentation Structure
This skill includes comprehensive documentation:
Quick Reference
- skills/quick-reference.md – Fast lookup guide for all components
- skills/api-reference.md – Complete API documentation
Guides & Examples
- skills/examples/formcontrol-guide.md – â FormControl 宿´æåï¼æ¨è¦é±è®ï¼
- skills/examples/form-validation.md – Form validation with Formik
Full Documentation
- docs/README.md – Documentation overview
- docs/GETTING_STARTED.md – Getting started guide
- docs/COMPONENT_CATALOG.md – Complete component catalog
Component Docs
- docs/components/ – Individual component documentation (20 files)
- docs/layouts/ – Layout documentation (2 files)
Troubleshooting
- skills/troubleshooting.md – Common issues and solutions
Contents
/
âââ SKILL.md # This file
âââ skills/
â âââ quick-reference.md # Quick lookup guide
â âââ api-reference.md # Complete API docs
â âââ skill-definition.json # Structured component data
â âââ troubleshooting.md # Common issues
â âââ examples/
â âââ formcontrol-guide.md # FormControl 宿´æå â
â âââ form-validation.md # Form validation example
âââ docs/
â âââ README.md # Documentation overview
â âââ GETTING_STARTED.md # Getting started
â âââ COMPONENT_CATALOG.md # Component catalog
â âââ DOCUMENTATION_SUMMARY.md # Docs summary
â âââ INDEX.md # Index
â âââ components/ # Component docs (20 files)
â â âââ AutoComplete.md
â â âââ Button.md
â â âââ Checkbox.md
â â âââ Column.md
â â âââ Container.md
â â âââ DataTable.md
â â âââ DatePicker.md
â â âââ FormControl.md
â â âââ Input.md
â â âââ Label.md
â â âââ Modal.md
â â âââ Navbar.md
â â âââ NavList.md
â â âââ PasswordInput.md
â â âââ RadioGroup.md
â â âââ Row.md
â â âââ Selectbox.md
â â âââ Switch.md
â â âââ TelephoneInput.md
â â âââ Text.md
â âââ layouts/ # Layout docs
â âââ EmptyLayout.md
â âââ SideMenuLayout.md
âââ lib/ # Source code
âââ components/ # Component implementations
Features
Component Coverage
- â All 22 components documented
- â Form components with Formik integration
- â Layout and navigation components
- â Data display components
- â TypeScript type definitions
Capabilities
- ð Component lookup and explanation
- ð» Code example generation
- ð¯ Best practices guidance
- ð Troubleshooting assistance
- ð Integration examples (Formik, React Router)
Component Quick Reference
Forms (11 components)
- FormControl â – Unified form control API (covers 12 input types)
- Button, Input, PasswordInput, TelephoneInput
- Selectbox, AutoComplete, RadioGroup, DatePicker
- Checkbox, Switch, Label
Layout (5 components)
- Container, Row, Column
- EmptyLayout, SideMenuLayout
Navigation (2 components)
- Navbar, NavList
Data Display (2 components)
- DataTable, Text
Interactive (1 component)
- Modal
Key Recommendations
â Use FormControl First
FormControl is the recommended high-level component that covers 12 input types:
| Type | Description |
|---|---|
text, email, number, password |
Basic inputs |
tel, date, datetime |
Specialized inputs |
select, autocomplete |
Selection controls |
radio, switch, confirm |
Choice controls |
Benefits:
- Unified API for all input types
- Automatic Label management
- Consistent variant (sm/md) handling
- Simplified onChange handling
- 50% less code than manual composition
Example:
<FormControl
type="email"
name="email"
value={email}
onChange={setEmail}
labelProps={{ label: "Email" }}
/>
See skills/examples/formcontrol-guide.md for complete documentation.
Quick Start Pattern
import { AppProvider, FormControl, Button } from 'anysystem-design';
function App() {
return (
<AppProvider appName="My App">
<form className="space-y-4">
<FormControl
type="text"
name="username"
value={username}
onChange={setUsername}
labelProps={{ label: "Username" }}
/>
<FormControl
type="password"
name="password"
value={password}
onChange={setPassword}
labelProps={{ label: "Password" }}
/>
<Button type="submit" variant="primary">Submit</Button>
</form>
</AppProvider>
);
}
Usage with Different AI Assistants
Claude Code
- Copy skill to
.claude/skills/:
mkdir -p .claude/skills
cp SKILL.md .claude/skills/anysystem-design.md
cp skills/skill-definition.json .claude/skills/
- Use in conversation:
How do I create a form with validation using AnySystem Design?
GitHub Copilot
- Add to workspace settings:
{
"github.copilot.advanced": {
"customSkills": ["./skills/skill-definition.json"]
}
}
Custom GPT (ChatGPT)
- Upload
skills/skill-definition.jsonas knowledge - Use this SKILL.md as instructions
LangChain / LlamaIndex
from langchain.tools import Tool
anysystem_skill = Tool(
name="anysystem-design",
description="Help with AnySystem Design React components",
func=load_skill("path/to/skills")
)
Example Queries
The skill can handle queries like:
- “How do I create a form with validation?”
- “Show me a complete login page example”
- “How to use DataTable with selection?”
- “Create a sidebar layout with navigation”
- “What props does the Modal component accept?”
- “How to integrate with Formik?”
- “DatePicker value format explanation”
- “What is FormControl and when should I use it?”
Documentation Lookup Order
For AI assistants, lookup in this order:
- skills/quick-reference.md – Fast component lookup
- skills/examples/formcontrol-guide.md – FormControl usage â
- docs/components/[Component].md – Detailed component docs
- skills/examples/form-validation.md – Validation patterns
- skills/troubleshooting.md – Common issues
Sample Responses
Query: “How do I use the Button component?”
The agent will provide:
- Import statement
- Basic usage example
- Props explanation (variant, size, rounded)
- Code examples for different variants
- Advanced usage (with icons, styling)
- Related components
Query: “Create a complete form with validation”
The agent will provide:
- Recommended: FormControl approach
- Formik + Yup setup
- FormControl usage with labelProps
- Error handling
- Submit button
- Complete working example
- Best practices
Must Remember
- â
Always wrap with
<AppProvider> - â
Use
Form*variants with Formik (FormInput, not Input) - â DatePicker value = Unix timestamp (seconds) as string
- â Modal uses imperative API (ref.current.show/hide)
- â FormControl is the preferred way for form inputs
- â All components support TypeScript
Contributing
To update or improve this skill:
- Make your changes to the skill files
- Test with your AI assistant
- Submit a pull request
Version
Current version: 0.0.48
Repository
Support
For issues or questions:
- GitHub Issues: https://github.com/david-marstree/anysystem/issues
- Examples: See
skills/examples/directory - Documentation: See
docs/directory for complete component docs
Made for AI Assistants ð¤
This skill enables AI to help developers build better React applications with AnySystem Design.