lint-and-build
Automates linting, building, and verifying codebases with support for filtering specific error types.
Install
mkdir -p .claude/skills/lint-and-build && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/9794" && unzip -o skill.zip -d .claude/skills/lint-and-build && rm skill.zipInstalls to .claude/skills/lint-and-build
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Handles code quality checks (linting) and project compilation (building). Can filter results to report only specific types of issues if requested.Key capabilities
- →Lint code
- →Build project
- →Parse logs
- →Filter issues
How it works
It runs linting and build commands, then parses the output to report issues based on user filters.
Inputs & outputs
When to use lint-and-build
- →Pre-push code checks
- →Running project build
- →Identifying linting errors
About this skill
Lint and Build Skill
This skill manages the project's integrity by running lints and builds. It is capable of parsing large logs to find specific error types if the user requests them.
When to use this skill
- When the user asks to "lint the code", "check for syntax errors", or "check code quality".
- When the user asks to "build the project" or "compile".
- When the user asks to "verify the codebase" (implies running both).
- When the user specifically asks to find certain errors (e.g., "Check for any 'unused variable' lint errors").
Instructions
1. Analyze Intent & Filters
Determine which actions are required:
- Lint Only: Triggers: "lint", "check style".
- Build Only: Triggers: "build", "compile".
- Both: Triggers: "verify", "check everything", "pre-push check".
Check for Filters: Did the user specify a category of issue? (e.g., "Show me deprecation warnings" or "Report formatting issues"), or "Report issues related to the auth service".
- If YES: Note the keywords (e.g., "deprecation", "indentation", "unused").
- If NO: Prepare to report ALL issues.
2. Execution
Run the necessary commands in the terminal.
Step A: Linting (If required)
- Run:
yarn lint - Decision: If linting fails and the user asked for a "build", ask the user if they want to proceed with the build anyway, or stop here (unless instructed to "fix and build").
Step B: Building (If required)
- Run:
yarn build
3. Reporting Logic (Crucial)
Analyze the terminal output from the commands above.
Scenario A: User provided specific filters
- Scan the output lines.
- Only report the errors/warnings that contain the user's keywords or related error codes.
- Explicitly state: "Filtering results for [User's Keyword]..."
- If the specific issue is not found, report: "No issues found matching [Keyword]."
Scenario B: No filters provided (Default)
- Summarize the result (Pass/Fail).
- List all errors and warnings found.
- If the output is massive (>50 lines), summarize the top 3 most frequent errors and ask the user if they want the full log.
Constraints
- Do not run
yarn installunless the commands fail due to missing packages. - If the build fails, analyze the stack trace and provide the likely cause (e.g., missing type definition, syntax error).
Examples
User: "Build the project."
Action: yarn build
Report: "Build successful." (or list of build errors)
User: "Lint the code but only tell me about unused variables."
Action: yarn lint
Report: Analyzes output, ignores formatting errors, and lists only no-unused-vars errors.
User: "Check the code integrity."
Action: Runs yarn lint followed by yarn build (if lint passes). Reports all issues.
When not to use it
- →Non-code projects
Prerequisites
Limitations
- →Dependent on project build tools
- →Requires yarn
How it compares
It allows filtering of build/lint logs, making it easier to find specific issues.
Compared to similar skills
lint-and-build side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| lint-and-build (this skill) | 0 | 5mo | No flags | Beginner |
| python-testing-patterns | 77 | 2mo | Review | Intermediate |
| dependency-upgrade | 26 | 5mo | Review | Intermediate |
| test-cases | 57 | 7mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
python-testing-patterns
wshobson
Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.
dependency-upgrade
wshobson
Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.
test-cases
cexll
This skill should be used when generating comprehensive test cases from PRD documents or user requirements. Triggers when users request test case generation, QA planning, test scenario creation, or need structured test documentation. Produces detailed test cases covering functional, edge case, error handling, and state transition scenarios.
reviewing-code
CaptainCrouton89
Systematically evaluate code changes for security, correctness, performance, and spec alignment. Use when reviewing PRs, assessing code quality, or verifying implementation against requirements.
wcag-audit-patterns
wshobson
Conduct WCAG 2.2 accessibility audits with automated testing, manual verification, and remediation guidance. Use when auditing websites for accessibility, fixing WCAG violations, or implementing accessible design patterns.
code-coverage-with-gcov
gadievron
Add gcov code coverage instrumentation to C/C++ projects