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/majiayu000/claude-skill-registry/tree/main/skills/development/universal-example
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.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?