Dotnet htmlhint

From managedcode/PrompterOne · View interactive version

Dotnet htmlhint is an AI agent skill from the GitHub repository managedcode/PrompterOne. Use HTMLHint in .NET repositories that ship static HTML output or standalone frontend templates. Use when a repo needs a focused CLI lint gate for DOM structure, invalid attributes, and basic HTML correctness checks on static pages.

How to use this skill

Skill file

HTMLHint for Static HTML in .NET Repositories

Trigger On

Do Not Use For

Inputs

Workflow

  1. Choose the right target first:
  1. Prefer repo-local installation and checked-in config for repeatable runs.
  2. Keep HTMLHint focused on static HTML correctness and lightweight policy.
  3. Add narrow scripts to package.json, for example:
  1. If the repo has templating syntax that confuses the parser, lint the rendered output instead of forcing source templates through the tool.
  2. Use rule overrides deliberately for real project conventions; do not disable broad classes of checks just to make a noisy first pass green.
  3. Rerun the publish or frontend build flow if fixes touched generated or packaged HTML sources.

Bootstrap When Missing

  1. Detect current state:
  1. Prefer a repo-local install:
  1. Add or refine .htmlhintrc only after confirming the actual target files.
  2. Add repeatable commands to AGENTS.md and package.json, then verify with:
  1. Return status: configured if HTMLHint now owns a clear static-HTML gate, or status: improved if the existing setup was tightened.
  2. Return status: not_applicable when the repo's HTML is primarily server-rendered templates that should be validated after rendering instead.

Handle Failures

Deliver

Validate

Ralph Loop

  1. Plan: analyze current state, target outcome, constraints, and risks.
  2. Execute one step and produce a concrete delta.
  3. Review the result and capture findings.
  4. Apply fixes in small batches and rerun checks.
  5. Update the plan after each iteration.
  6. Repeat until outcomes are acceptable.
  7. If a dependency is missing, bootstrap it or return status: not_applicable with a reason.

Required Result Format

Example Requests

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.