agentleFS
ytvee-devytvee-dev/webdev-agent-kit/skills/frontend-linter-manager/SKILL.md

frontend-linter-manager

Skill7 starsChanged 21 days agoApache-2.0View on GitHub

Run scoped frontend lint verification, repair related lint failures, or plan explicitly requested lint setup. Prefer existing commands; dependencies, scripts, and config changes require approval.

The file

Show its rules and text

We split this skill into the rules it gives an agent

28 rules. About 0 are common, 24 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈24

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run or plan lint verification for frontend code changes, repair related lint failures within a bounded loop, and manage user-requested lint …

    line 35
  2. Distinctive:

    Use this skill after any code-changing fix, feature, refactor, implementation slice, or approved greenfield code creation.

    line 39
  3. Distinctive:

    Use it before code changes only when the user explicitly asks to add or repair lint setup.

    line 41
  4. Distinctive:

    Do not use this skill for planning-only, design-only, documentation-only, README-only, or analysis-only tasks.

    line 45
  5. Very specific:

    Read package scripts or project/verification-profile.md to find existing lint commands.

    line 50
  6. Very specific:

    Read common/lint-verification-rules.md and common/windows-shell-sandbox-rules.md before rerunning a command that failed because of Windows …

    line 51
  7. Very specific:

    Read common/verification-loop-rules.md and common/bounded-retry-rules.md when lint repair is in scope.

    line 52
  8. Distinctive:

    Read only files needed to understand the package manager or workspace boundary.

    line 53
  9. Distinctive:

    Must not add packages, scripts, or config files without explicit user approval.

    line 62
  10. Distinctive:

    Must not change PowerShell execution policy.

    line 63
  11. Distinctive:

    Must not repeat the same shell-blocked command after an equivalent fallback exists.

    line 64
  12. Distinctive:

    Must not create tests or testing workflows.

    line 65
  13. Distinctive:

    Must not introduce UI component libraries.

    line 66
  14. Distinctive:

    Run that command after the code change.

    line 71
  15. Very specific:

    If the command is blocked by Windows PowerShell .ps1 policy, retry once with the equivalent .cmd package-manager command when available.

    line 72
  16. Distinctive:

    If lint passes, record command and result.

    line 73
  17. Distinctive:

    If lint fails, classify failures as related, likely pre-existing, unrelated environment issue, shell-blocked, sandbox-blocked, or unknown.

    line 74
  18. Distinctive:

    If lint fails because of the current change, fix it when safe and in scope.

    line 75
  19. Distinctive:

    Use bounded retry rules when multiple related lint repair attempts are needed.

    line 77
  20. Distinctive:

    Do not switch to an easier command just to claim success.

    line 78
  21. Distinctive:

    Do not keep rerunning lint after the same shell or sandbox blocker repeats.

    line 79
  22. Distinctive:

    If no lint command exists, report that lint was not run.

    line 81
  23. Distinctive:

    If the user asks for lint setup, propose a setup plan first and wait for approval.

    line 82
  24. Distinctive:

    When the user asks to add the provided lint rules, use the uploaded flat ESLint model as the preferred source pattern.

    line 86
  25. Distinctive:

    If lint was not run, include the reason and impact.

    line 106
  26. Distinctive:

    No dependency, script, execution-policy, or config change happened without approval.

    line 116
  27. Distinctive:

    No testing workflow was introduced.

    line 117
  28. Distinctive:

    No UI component library was introduced.

    line 118

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Frontend Linter Manager

Purpose

Run or plan lint verification for frontend code changes, repair related lint failures within a bounded loop, and manage user-requested lint setup safely.

When To Use

Use this skill after any code-changing fix, feature, refactor, implementation slice, or approved greenfield code creation.

Use it before code changes only when the user explicitly asks to add or repair lint setup.

When Not To Use

Do not use this skill for planning-only, design-only, documentation-only, README-only, or analysis-only tasks. Do not treat lint setup as a testing workflow.

Required Context

  1. Read AGENTS.md.
  2. Read package scripts or project/verification-profile.md to find existing lint commands.
  3. Read common/lint-verification-rules.md and common/windows-shell-sandbox-rules.md before rerunning a command that failed because of Windows shell policy or sandbox access.
  4. Read common/verification-loop-rules.md and common/bounded-retry-rules.md when lint repair is in scope.
  5. Read only files needed to understand the package manager or workspace boundary.

Tool Contract

  • May run an existing lint command after code changes.
  • May inspect package scripts and workspace files.
  • May use one equivalent .cmd package-manager fallback on Windows after a PowerShell .ps1 execution-policy block.
  • May update project/verification-profile.md when durable lint command facts are useful.
  • May fix lint failures related to the current change when safe and in scope.
  • Must not add packages, scripts, or config files without explicit user approval.
  • Must not change PowerShell execution policy.
  • Must not repeat the same shell-blocked command after an equivalent fallback exists.
  • Must not create tests or testing workflows.
  • Must not introduce UI component libraries.

Workflow

  1. Detect the smallest relevant existing lint command.
  2. Run that command after the code change.
  3. If the command is blocked by Windows PowerShell .ps1 policy, retry once with the equivalent .cmd package-manager command when available.
  4. If lint passes, record command and result.
  5. If lint fails, classify failures as related, likely pre-existing, unrelated environment issue, shell-blocked, sandbox-blocked, or unknown.
  6. If lint fails because of the current change, fix it when safe and in scope.
  7. Rerun the same lint command after related fixes.
  8. Use bounded retry rules when multiple related lint repair attempts are needed.
  9. Do not switch to an easier command just to claim success.
  10. Do not keep rerunning lint after the same shell or sandbox blocker repeats; report the blocker and verification impact.
  11. Report lint command, fallback command when used, result, attempt count, and unresolved lint issues.
  12. If no lint command exists, report that lint was not run.
  13. If the user asks for lint setup, propose a setup plan first and wait for approval.

User-Provided ESLint Model

When the user asks to add the provided lint rules, use the uploaded flat ESLint model as the preferred source pattern.

The model includes TypeScript type-checked rules, React rules, React Hooks rules, JSX accessibility rules, SonarJS rules, Prettier compatibility, ignore rules, optional strict presets, and a format-lint-fix helper.

Adapt the model to the host project after inspecting the existing package manager, framework, TypeScript usage, React usage, formatter or linter config, workspace layout, and scripts.

Output Contract

Final response: return only facts that affect the user's understanding, confidence, or next action. Omit empty fields and workflow narration.

Lint command run:
Lint result:
Fallback command:
Attempts:
Related failures fixed:
Unresolved lint issues:
Blocked checks:

If lint was not run, include the reason and impact.

Validation Gates

  • Lint was run for code-changing work when a command exists.
  • Lint status is reported honestly.
  • Windows shell-policy failures use at most one equivalent .cmd fallback.
  • Shell and sandbox blockers are not reported as project code failures.
  • Related lint repairs use bounded retry rules.
  • Unrelated or pre-existing failures are not silently claimed as fixed.
  • No dependency, script, execution-policy, or config change happened without approval.
  • No testing workflow was introduced.
  • No UI component library was introduced.

Trigger Evals

Should trigger:

  • "Run the existing lint command after this frontend change."
  • "Repair only lint failures caused by the current patch."
  • "On Windows, npm run lint failed because npm.ps1 is blocked. Verify with the correct fallback and report honestly."

Should not trigger:

  • "Add a new testing framework."
  • "Explain this lint rule without running verification."

Reference Map

  • AGENTS.md - canonical policy and routing.
  • common/lint-verification-rules.md - lint command and reporting rules.
  • common/windows-shell-sandbox-rules.md - Windows PowerShell and sandbox blocker handling.
  • common/verification-loop-rules.md - verification classification and rerun rules.
  • common/bounded-retry-rules.md - bounded repair loop rules.
  • project/verification-profile.md - local-only verification commands.
  • user-provided ESLint model - preferred setup pattern when setup is explicitly requested.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.