Source command td code simplify
Skill qianxian-yang/harness-plugin/.agents/skills/source-command-td-code-simplify
Simplify code for clarity and maintainability — reduce complexity without changing behaviorFrom its SKILL.md
npx -y skills add qianxian-yang/harness-plugin --skill source-command-td-code-simplifyAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.2 KB, as published. Nobody here has run it
source-command-td-code-simplify
Use this skill when the user asks to run the migrated source command td-code-simplify.
Command Template
Invoke the harness-skills:td-code-simplification skill.
Simplify recently changed code (or the specified scope) while preserving exact behavior:
- Read AGENTS.md and study project conventions
- Identify the target code — recent changes unless a broader scope is specified
- Understand the code's purpose, callers, edge cases, and test coverage before touching it
- Scan for simplification opportunities:
- Deep nesting → guard clauses or extracted helpers
- Long functions → split by responsibility
- Nested ternaries → if/else or switch
- Generic names → descriptive names
- Duplicated logic → shared functions
- Dead code → remove after confirming
- Apply each simplification incrementally — run tests after each change
- Verify all tests pass, the build succeeds, and the diff is clean
If tests fail after a simplification, revert that change and reconsider. Use td-code-review-and-quality to review the result.