{"id":"ea18b5d8-d7ad-481a-836e-74fcf4a497fd","shortId":"36R6YU","kind":"skill","title":"validate-code","tagline":"Validate code quality: auto-fix formatting/lint, verify types, run tests. Use when user asks to \"validate code\", \"/validate-code\", \"check code\", or wants to validate before committing. Don't use for committing, pushing, or writing new tests.","description":"# Validate Code\n\n## Workflow\n\n1. Read `package.json` to identify available scripts\n2. **Format + lint fix**: run `npm run lint-fix` or `npm run lint:fix` (whichever exists)\n3. **Lint + types**: run `npm run lint` (runs `tsc --noEmit` + eslint)\n4. **Tests**: run `npm test`\n5. Report overall **PASS** or **FAIL** with file:line error references\n\n## Rules\n\n- Always auto-fix before reporting errors\n- Run lint-fix → lint check → test sequentially\n- If lint-fix fails, still run lint check and tests; report all failures at the end\n- Report errors as `file:line` references\n- Never commit, stage, or push anything\n\n## Error Handling\n\n- If no `package.json` → report and stop\n- If neither `lint-fix` nor `lint:fix` script exists → skip fix, still run `lint`\n- If `lint` script missing → skip lint entirely, note it was skipped\n- If `test` script missing → skip tests, note it was skipped\n- If all scripts missing → report nothing to run, stop\n- If tests time out → report and suggest increasing `--testTimeout` in runner config\n- If runner crashes (exit code other than 0 or 1) → report crash output and stop","tags":["validate","code","agent","skills","helderberto","agent-skills","ai-tools","antigravity","claude-code","cursor","developer-tools","gemini-cli"],"capabilities":["skill","source-helderberto","skill-validate-code","topic-agent-skills","topic-ai-tools","topic-antigravity","topic-claude-code","topic-cursor","topic-developer-tools","topic-gemini-cli","topic-markdown","topic-plugin","topic-sdlc","topic-skills","topic-tracer-bullet"],"categories":["agent-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/helderberto/agent-skills/validate-code","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add helderberto/agent-skills","source_repo":"https://github.com/helderberto/agent-skills","install_from":"skills.sh"}},"qualityScore":"0.454","qualityRationale":"deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (1,104 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:09:15.206Z","embedding":null,"createdAt":"2026-05-18T13:14:55.475Z","updatedAt":"2026-05-18T19:09:15.206Z","lastSeenAt":"2026-05-18T19:09:15.206Z","tsv":"'/validate-code':22 '0':212 '1':44,214 '2':51 '3':68 '4':79 '5':84 'alway':96 'anyth':139 'ask':18 'auto':8,98 'auto-fix':7,97 'avail':49 'check':23,108,119 'code':3,5,21,24,42,209 'commit':30,35,135 'config':204 'crash':207,216 'end':127 'entir':169 'error':93,102,129,140 'eslint':78 'exist':67,157 'exit':208 'fail':89,115 'failur':124 'file':91,131 'fix':9,54,60,65,99,106,114,152,155,159 'format':52 'formatting/lint':10 'handl':141 'identifi':48 'increas':200 'line':92,132 'lint':53,59,64,69,74,105,107,113,118,151,154,162,164,168 'lint-fix':58,104,112,150 'miss':166,177,187 'neither':149 'never':134 'new':39 'noemit':77 'note':170,180 'noth':189 'npm':56,62,72,82 'output':217 'overal':86 'package.json':46,144 'pass':87 'push':36,138 'qualiti':6 'read':45 'refer':94,133 'report':85,101,122,128,145,188,197,215 'rule':95 'run':13,55,57,63,71,73,75,81,103,117,161,191 'runner':203,206 'script':50,156,165,176,186 'sequenti':110 'skill' 'skill-validate-code' 'skip':158,167,173,178,183 'source-helderberto' 'stage':136 'still':116,160 'stop':147,192,219 'suggest':199 'test':14,40,80,83,109,121,175,179,194 'testtimeout':201 'time':195 'topic-agent-skills' 'topic-ai-tools' 'topic-antigravity' 'topic-claude-code' 'topic-cursor' 'topic-developer-tools' 'topic-gemini-cli' 'topic-markdown' 'topic-plugin' 'topic-sdlc' 'topic-skills' 'topic-tracer-bullet' 'tsc':76 'type':12,70 'use':15,33 'user':17 'valid':2,4,20,28,41 'validate-cod':1 'verifi':11 'want':26 'whichev':66 'workflow':43 'write':38","prices":[{"id":"ae89172a-5da6-43ae-b7c6-2a98c49e0fa4","listingId":"ea18b5d8-d7ad-481a-836e-74fcf4a497fd","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"helderberto","category":"agent-skills","install_from":"skills.sh"},"createdAt":"2026-05-18T13:14:55.475Z"}],"sources":[{"listingId":"ea18b5d8-d7ad-481a-836e-74fcf4a497fd","source":"github","sourceId":"helderberto/agent-skills/validate-code","sourceUrl":"https://github.com/helderberto/agent-skills/tree/main/skills/validate-code","isPrimary":false,"firstSeenAt":"2026-05-18T13:14:55.475Z","lastSeenAt":"2026-05-18T19:09:15.206Z"}],"details":{"listingId":"ea18b5d8-d7ad-481a-836e-74fcf4a497fd","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"helderberto","slug":"validate-code","github":{"repo":"helderberto/agent-skills","stars":8,"topics":["agent-skills","ai","ai-tools","antigravity","claude-code","cursor","developer-tools","gemini-cli","markdown","plugin","sdlc","skills","tracer-bullet"],"license":"mit","html_url":"https://github.com/helderberto/agent-skills","pushed_at":"2026-05-14T11:37:47Z","description":"My personal SDLC toolbelt for AI coding agents — PRD to ship.","skill_md_sha":"bade0e02bafb3e83cb602f38bacc6478f6c54ec3","skill_md_path":"skills/validate-code/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/helderberto/agent-skills/tree/main/skills/validate-code"},"layout":"multi","source":"github","category":"agent-skills","frontmatter":{"name":"validate-code","description":"Validate code quality: auto-fix formatting/lint, verify types, run tests. Use when user asks to \"validate code\", \"/validate-code\", \"check code\", or wants to validate before committing. Don't use for committing, pushing, or writing new tests."},"skills_sh_url":"https://skills.sh/helderberto/agent-skills/validate-code"},"updatedAt":"2026-05-18T19:09:15.206Z"}}