Agent skill
rules
A test skill for E2E conversion testing
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/rules
SKILL.md
Test Skill
Overview
This is a comprehensive test skill for validating format conversion between Claude Skills and Cursor Rules.
Core Principles
- Write clean, maintainable code
- Test thoroughly before deploying
- Document your work clearly
- Follow established patterns
Workflow
-
Understand Requirements
- Read the task description carefully
- Identify all constraints and dependencies
- Ask clarifying questions if needed
-
Plan Implementation
- Break down the task into steps
- Identify potential challenges
- Consider edge cases
-
Write Code
- Follow coding standards
- Keep functions small and focused
- Use meaningful variable names
-
Test Thoroughly
- Write unit tests
- Run integration tests
- Verify edge cases
-
Document Solution
- Add code comments
- Update README if needed
- Document any gotchas
Best Practices
- Version Control: Commit often with clear messages
- Code Review: Always get feedback before merging
- Refactoring: Improve code structure continuously
- Learning: Stay updated with best practices
Integration
This skill works well with:
- Systematic debugging approaches
- Test-driven development
- Code review practices
Examples
Good Code Pattern
function calculateTotal(items: Item[]): number {
return items.reduce((sum, item) => sum + item.price, 0);
}
Bad Code Pattern (Avoid)
function calc(x) {
let t = 0;
for (let i = 0; i < x.length; i++) {
t = t + x[i].p;
}
return t;
}
Troubleshooting
-
Issue: Code not working
- Solution: Check syntax errors, verify inputs
-
Issue: Tests failing
- Solution: Review test assertions, check mock data
-
Issue: Performance problems
- Solution: Profile code, optimize bottlenecks
Converted from: Claude Code Skill - test-skill Format: Cursor Rules (.mdc)
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?