skills
AGENTS.md154 starsChanged 3 months agoMITView on GitHub
This document provides essential information for AI agents working on skills in this repository. A skill is a reusable capability that AI agents can use to accomplish specific tasks. Each skill: Every skill must have a SKILL.md file with this format: All skills are released together and must use the exact version in the root VERSION file. Skill versions do not track their external CLI or SDK dependencies. See VERSIONING.md and run sh scripts/check_versions.sh after changing a version.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository6 other files it gives its agents.
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
17 rules. About 0 are common, 10 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
Every skill must have a SKILL.md file with this format:
- Very specific: line 89
All skills are released together and must use the exact version in the root VERSION file.
- Very specific: line 100
Use .md files for documentation
- Very specific: line 105
Should be referenced in SKILL.md
- Very specific: line 109
Should be documented in SKILL.md
- Very specific: line 162
Read SKILL.md as an AI agent would
- Distinctive: line 163
Follow the instructions step-by-step
- Distinctive: line 164
Verify examples work as expected
- Distinctive: line 231
Use descriptive, searchable tags:
- Distinctive: line 293
Use headers for structure (##, ###)
- Distinctive: line 294
Use code blocks for tool calls and outputs
- Distinctive: line 295
Use tables for parameter lists
- Distinctive: line 296
Use alerts for important notes:
- Very specific: line 322
Do not push directly to develop or main.
- Distinctive: line 351
NFT Minting: - Create and mint NFTs
- Distinctive: line 379
Test with AI agents: before finalizing
- Distinctive: line 380
Ask for review: if unsure
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Guidelines: Skills Repository
This document provides essential information for AI agents working on skills in this repository.
📁 Repository Structure
skills/
├── AGENTS.md # This file - development guidelines
├── sunswap/ # SunSwap DEX trading skill
│ ├── SKILL.md # Main skill definition
│ ├── examples/ # Usage examples
│ ├── resources/ # Configuration files
│ └── scripts/ # Helper scripts
└── [other-skills]/ # Future skills🎯 What is a Skill?
A skill is a reusable capability that AI agents can use to accomplish specific tasks. Each skill:
- Encapsulates domain knowledge (e.g., how to use SunSwap DEX)
- Provides step-by-step instructions for AI agents
- Includes examples showing common usage patterns
- May depend on external tools (e.g., MCP servers)
📝 Skill File Format
SKILL.md Structure
Every skill must have a SKILL.md file with this format:
---
name: Skill Name
description: Brief description of what the skill does
version: <value from root VERSION>
dependencies:
- dependency-1
- dependency-2
tags:
- tag1
- tag2
---
# Skill Name
## Overview
[What this skill does]
## Prerequisites
[What needs to be set up before using this skill]
## Usage Instructions
[Step-by-step guide for AI agents]
## Examples
[Links to example files or inline examples]
## Error Handling
[Common errors and how to handle them]
## Security Considerations
[Important security notes]YAML Frontmatter Fields
| Field | Required | Description |
name | ✅ | Human-readable skill name |
description | ✅ | Brief description (1-2 sentences) |
version | ✅ | Repository release version from the root VERSION file |
dependencies | ⚠️ | List of required tools/servers (e.g., mcp-server-tron) |
tags | ⚠️ | Searchable tags for skill discovery |
🗂 Skill Directory Structure
Versioning
All skills are released together and must use the exact version in the root VERSION file. Skill
versions do not track their external CLI or SDK dependencies. See VERSIONING.md
and run sh scripts/check_versions.sh after changing a version.
Required Files
- SKILL.md - Main skill definition (required)
Optional Directories
- examples/ - Usage examples (recommended)
- Use
.mdfiles for documentation - Include complete, runnable examples
- Use
- resources/ - Configuration files (optional)
- JSON files for addresses, ABIs, constants
- Should be referenced in SKILL.md
- scripts/ - Helper scripts (optional)
- Python, JavaScript, or shell scripts
- Should be documented in SKILL.md
🛠 Creating a New Skill
Step 1: Create Directory
mkdir -p skills/my-skill/{examples,resources,scripts}Step 2: Create SKILL.md
cat > skills/my-skill/SKILL.md << 'EOF'
---
name: My Skill
description: What this skill does
version: <value from root VERSION>
tags:
- category
---
# My Skill
## Overview
[Description]
## Usage Instructions
1. Step 1
2. Step 2
3. Step 3
EOFStep 3: Add Examples
cat > skills/my-skill/examples/basic_usage.md << 'EOF'
# Basic Usage Example
## Scenario
[What this example demonstrates]
## Steps
1. [Step 1 with code]
2. [Step 2 with code]
EOFStep 4: Test the Skill
- Read SKILL.md as an AI agent would
- Follow the instructions step-by-step
- Verify examples work as expected
📚 Writing Effective Skills
Best Practices
1. Be Specific and Actionable
❌ Bad: "Use the tool to get data"
✅ Good: "Call read_contract with contractAddress='TXX...' and functionName='balanceOf'"
2. Include Complete Examples
- Show full tool calls with all parameters
- Include expected outputs
- Cover error cases
3. Document Dependencies Clearly
## Prerequisites
This skill requires:
- `mcp-server-tron` configured in your MCP client
- TRON wallet with private key set in environment
- Testnet TRX for gas fees4. Use Code Blocks for Tool Calls
## Step 1: Get Price Quote
Use the `read_contract` tool:
\`\`\`json
{
"contractAddress": "TKzxdSv2FZKQrEqkKVgp5DcwEXBEKMg2Ax",
"functionName": "getAmountsOut",
"args": [100000000, ["TUSDT...", "TWTRX..."]],
"network": "mainnet"
}
\`\`\`5. Handle Errors Gracefully
## Common Errors
### Error: "Insufficient allowance"
**Cause**: Token not approved for Router
**Solution**: Call `approve` function first (see example)
### Error: "Slippage too high"
**Cause**: Price moved beyond acceptable range
**Solution**: Increase slippage tolerance or retry🔍 Skill Discovery
AI agents discover skills by:
- Reading
SKILL.mdfiles in the skills directory - Matching tags to user requests
- Following instructions in the skill
Tagging Guidelines
Use descriptive, searchable tags:
tags:
- defi # Category
- dex # Subcategory
- swap # Action
- tron # Blockchain
- sunswap # Specific protocol🧪 Testing Skills
Manual Testing Checklist
- SKILL.md has valid YAML frontmatter
- SKILL.md version matches the root VERSION file
- All dependencies are documented
- Instructions are clear and step-by-step
- Examples run without errors
- Resource files are valid (JSON, etc.)
- Scripts execute successfully
Testing with AI Agents
- Load the skill in your AI agent environment
- Ask a relevant question (e.g., "How do I swap tokens on SunSwap?")
- Verify the agent:
- Finds the correct skill
- Follows the instructions
- Uses the right tools
- Handles errors properly
🔐 Security Guidelines
For Skill Authors
- Never hardcode private keys in examples or scripts
- Always use environment variables for sensitive data
- Include slippage protection in DeFi examples
- Warn about testnet vs mainnet usage
- Document gas/fee requirements
Example Security Note
> [!WARNING]
> **Slippage Protection**: Always set `amountOutMin` to prevent
> sandwich attacks. Recommended slippage: 0.5-1% for stablecoins,
> 1-3% for volatile tokens.📖 Documentation Standards
Markdown Formatting
- Use headers for structure (##, ###)
- Use code blocks for tool calls and outputs
- Use tables for parameter lists
- Use alerts for important notes:
> [!NOTE]- General information> [!WARNING]- Important warnings> [!CAUTION]- Critical security issues
Code Examples
Always include:
- Context: What the code does
- Input: Parameters and their values
- Output: Expected result
- Error handling: What can go wrong
🤝 Contributing Skills
Contribution Workflow
- Synchronize
developwith the upstream repository - Create
feature/<short_description>fromdevelop - Create or update the Skill following this guide
- Test thoroughly with AI agents
- Document dependencies clearly
- Submit a pull request to
develop
Do not push directly to develop or main. Release and hotfix work follows
BRANCHING.md.
Review Criteria
- ✅ Clear, actionable instructions
- ✅ Complete examples
- ✅ Proper error handling
- ✅ Security considerations documented
- ✅ Dependencies listed
- ✅ Valid YAML frontmatter
🔗 Related Resources
| Resource | Description |
| BRANCHING.md | Development, release, and hotfix workflow |
| mcp-server-tron | TRON blockchain MCP server |
| DEVELOPER_GUIDE.md | Project-wide development guide |
| agents.md | Agent architecture documentation |
💡 Skill Ideas
Future skills to consider:
- Token Transfer - Simple TRC20 transfers
- NFT Minting - Create and mint NFTs
- Staking - Stake tokens in DeFi protocols
- Governance - Vote on DAO proposals
- Analytics - Query blockchain data
❓ FAQ
Q: Can a skill depend on another skill?
A: Yes, list it in dependencies and reference it in instructions.
Q: How do I version a skill?
A: Use the repository release in the root VERSION file. All skills advance together; dependency
versions remain independent.
Q: Can I use external APIs in a skill?
A: Yes, but document them clearly in prerequisites.
Q: How do I handle network-specific addresses?
A: Use resource files (JSON) with network-specific configs.
🆘 Getting Help
- Check existing skills for examples (e.g.,
sunswap/) - Read SKILL.md format carefully
- Test with AI agents before finalizing
- Ask for review if unsure
Last Updated: 2026-02-09
Maintainer: Bank of AI Team
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

