[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-3432650b-1a2a-4827-8834-a194b27b7340":3,"$fUqJS9lq3o0l4do0Us7YGQu3FRBcbC9nsu6hx7MVCvFE":43},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":34},"3432650b-1a2a-4827-8834-a194b27b7340","lint-and-validate","必须：每次代码更改后运行适当的验证工具。代码无错误前不要完成任务。","cat_coding_review","mod_coding","sickn33,coding","---\nname: lint-and-validate\ndescription: \"MANDATORY: Run appropriate validation tools after EVERY code change. Do not finish a task until the code is error-free.\"\nrisk: unknown\nsource: community\ndate_added: \"2026-02-27\"\n---\n\n# Lint and Validate Skill\n\n> **MANDATORY:** Run appropriate validation tools after EVERY code change. Do not finish a task until the code is error-free.\n\n### Procedures by Ecosystem\n\n#### Node.js \u002F TypeScript\n1. **Lint\u002FFix:** `npm run lint` or `npx eslint \"path\" --fix`\n2. **Types:** `npx tsc --noEmit`\n3. **Security:** `npm audit --audit-level=high`\n\n#### Python\n1. **Linter (Ruff):** `ruff check \"path\" --fix` (Fast & Modern)\n2. **Security (Bandit):** `bandit -r \"path\" -ll`\n3. **Types (MyPy):** `mypy \"path\"`\n\n## The Quality Loop\n1. **Write\u002FEdit Code**\n2. **Run Audit:** `npm run lint && npx tsc --noEmit`\n3. **Analyze Report:** Check the \"FINAL AUDIT REPORT\" section.\n4. **Fix & Repeat:** Submitting code with \"FINAL AUDIT\" failures is NOT allowed.\n\n## Error Handling\n- If `lint` fails: Fix the style or syntax issues immediately.\n- If `tsc` fails: Correct type mismatches before proceeding.\n- If no tool is configured: Check the project root for `.eslintrc`, `tsconfig.json`, `pyproject.toml` and suggest creating one.\n\n---\n**Strict Rule:** No code should be committed or reported as \"done\" without passing these checks.\n\n---\n\n## Scripts\n\n| Script | Purpose | Command |\n|--------|---------|---------|\n| `scripts\u002Flint_runner.py` | Unified lint check | `python scripts\u002Flint_runner.py \u003Cproject_path>` |\n| `scripts\u002Ftype_coverage.py` | Type coverage analysis | `python scripts\u002Ftype_coverage.py \u003Cproject_path>` |\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,76,1981,"2026-05-16 13:26:38",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"编程开发","coding","mdi-code-braces","代码生成、调试、审查，提升开发效率",2,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":32,"skillCount":33,"createdAt":26},"代码审查","review","mdi-magnify-scan","代码质量分析、安全审查",4,145,[35],{"id":36,"skillId":4,"version":37,"fileName":38,"fileSize":39,"filePath":40,"fileHash":41,"manifest":42,"createdAt":19},"b0e1920c-ec3f-4c43-b6d7-e7704b8f87fd","1.0.0","lint-and-validate.zip",4699,"uploads\u002Fskills\u002F3432650b-1a2a-4827-8834-a194b27b7340\u002Flint-and-validate.zip","e7b1ba59e3d6cbf3aec5768818120acb6a61f9e43bbc0e56523ed629e23e4245","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":2059},{\"path\":\"scripts\u002Flint_runner.py\",\"isDirectory\":false,\"size\":4969},{\"path\":\"scripts\u002Ftype_coverage.py\",\"isDirectory\":false,\"size\":6480}]",{"code":44,"message":45,"data":46},200,"success",{"items":47,"stats":48,"page":51},[],{"averageRating":49,"totalRatings":49,"ratingCounts":50},0,[49,49,49,49,49],{"limit":52,"offset":49,"hasMore":53,"nextOffset":52,"ratedOnly":16},15,false]