Agent skill
universal-example
An example of universal Skill using template engine for multi-platform support
Install this agent skill to your Project
npx add-skill https://github.com/JiangDing1990/universal-skill-kit/tree/main/examples/universal-skill
SKILL.md
Universal Example Skill
This Skill demonstrates how to write platform-agnostic content using the template engine.
Platform Information
Platform: Claude Code
This is the full-featured version with detailed documentation and extensive examples. You're seeing this because you're using Claude Code, which supports longer descriptions and more comprehensive Skill content.
Platform: Codex
This is the optimized version for Codex with concise documentation. Codex has a 500-character description limit, so this version is streamlined.
Common Features
These features work on both platforms:
Feature 1: Code Generation
function generateCode() {
return 'Generated code works everywhere!'
}
Feature 2: Template Support
Both platforms support the same template structure.
Feature 3: Resource Management
Assets and references work consistently across platforms.
Platform-Specific Content
Claude-Only Features
Claude Code supports these advanced features:
Detailed Documentation
You can include extensive documentation in Claude Skills without worrying about length limits. This allows for comprehensive guides, multiple examples, and in-depth explanations.
Rich Examples
// Example 1: Complex scenario
class AdvancedFeature {
constructor(private config: Config) {}
async process(data: Data): Promise<Result> {
// Detailed implementation
const validated = await this.validate(data)
const transformed = this.transform(validated)
return this.output(transformed)
}
}
// Example 2: Integration
const feature = new AdvancedFeature(config)
const result = await feature.process(inputData)
console.log(result)
Reference Materials
- Advanced Topics
- Best Practices
- API Reference
Codex-Optimized Content
Quick reference for Codex users:
Key Points
- Feature A: Brief explanation
- Feature B: Quick example
- Feature C: Core usage
Quick Example
// Essential code only
const result = quickProcess(data)
Variables
This Skill is named {{name}} and is at version {{version}}.
Additional Resources
For more information:
- Check the examples directory
- Read the comprehensive guide
- Review the API documentation
Conclusion
Thank you for using this universal Skill! This example demonstrates how to write content that adapts to different platforms while maintaining a single source of truth. By using conditional blocks, you can provide rich content for Claude and optimized content for Codex from the same SKILL.md file.
Thanks for using this universal Skill! This example shows platform-adaptive content.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
src
test-skill
A test skill
senior-frontend-engineer-react
Enterprise React development skill for building CRUD applications with React 16.14, DVA 2.x, and @lianjia/antd-life component library. Core capabilities: (1) Auto-generate list pages with pagination/filtering/sorting, (2) Form dialog management with validation, (3) Detail page rendering in read-only/edit modes, (4) DVA model integration for state management, (5) API service layer with async/await patterns. Tech stack: React 16.14, DVA 2.x, TypeScript, @lianjia/antd-life, Ant Design 3.x. Best suited for internal management systems, dashboards, and data-driven applications. Important: NOT compatible with React 18 or Ant Design 5. Use appropriate versions for your project.
src
src
simple-example
A simple example Skill demonstrating basic functionality
Didn't find tool you were looking for?