# Make Web Reviews Safer with the best-practices Skill

> Source: <https://dev.to/techleadsclub/make-web-reviews-safer-with-the-best-practices-skill-2hae>
> Published: 2026-12-06 10:09:23+00:00

**Key takeaway:** The `best-practices` skill scopes an agent to a security, compatibility, runtime, code-quality and privacy checklist and requires each finding to carry a file location, severity, and a concrete verification command such as `npm audit` or `curl -I`.

Modern web projects can be functional, tested, and still ship avoidable risk. A page may load an insecure asset, expose an overly permissive policy, use a deprecated browser API, leak a source map, or fail silently in production. These issues often sit between feature work and a formal security review.

[Tech Leads Club Agent Skills](https://agent-skills.techleads.club/) provides reusable instructions for coding agents that turn that kind of review into a repeatable workflow. The `best-practices` skill is a focused web quality review: it gives an agent a concrete checklist for security, browser compatibility, runtime behavior, code quality, and privacy-related UX.

The skill is based on modern web development standards and Lighthouse-style best-practice audits. Its source instructions cover:

It also points to concrete verification tools, including `npm audit`, SecurityHeaders.com, the W3C Validator, Lighthouse, and Mozilla Observatory. The final audit checklist is useful because it makes the agent's review inspectable instead of leaving you with a vague statement that the code is "more secure."

This scope matters. The skill explicitly says not to use it for accessibility, SEO, performance, or a comprehensive multi-area audit. Use the dedicated skill for those jobs, or use `web-quality-audit` when you need the broader review.

Imagine a React checkout page that recently added a payment widget, an address autocomplete library, and a browser geolocation prompt. The feature works locally, but the team wants a focused release review before exposing it to customers.

The agent should inspect the relevant source files, package manifests, build configuration, and deployment headers. Give it the context it needs and ask for evidence, not just recommendations:

```
Review the checkout flow with the best-practices skill from Tech Leads Club Agent Skills.

Focus on the payment widget, address autocomplete, and geolocation permission flow.
Inspect the source files, package manifests, build configuration, and any documented
HTTP headers. Do not make changes yet.

Report findings grouped by security, browser compatibility, runtime quality, code
quality, and UX. For every finding, include the file or configuration location,
why it matters, severity, and a concrete verification command or browser check.
Separate confirmed findings from items that require deployment or human review.
```

The deliberate boundary at "Do not make changes yet" is important. It lets the team review the evidence before an agent edits security-sensitive code or changes headers.

The exact result depends on the repository. An illustrative output might look like this:

```
Confirmed findings

Security - high
- src/widgets/payment.tsx loads a third-party script from an HTTP URL.
  Verify with: rg "http://" src public
  Fix direction: use an HTTPS endpoint and confirm the production response.

Security - medium
- The documented response headers do not include a Content-Security-Policy.
  Verify with: curl -I https://staging.example.com/checkout
  Human check: confirm all required payment and analytics origins first.

Compatibility - medium
- src/location.ts calls navigator.geolocation without a feature check.
  Verify with: test in a browser that does not expose the API.

Runtime quality - low
- The payment component registers a window listener without a cleanup path.
  Verify with: mount and unmount the component repeatedly in a development build.

Not confirmed
- Dependency exposure requires a fresh install and npm audit in CI.
- Source-map exposure requires inspecting the deployed artifact and response paths.
```

That format is valuable because it separates repository evidence from claims that require a running deployment. It also gives the engineer a path to verify each result rather than treating the agent's confidence as proof.

The official [Codex installation page](https://agent-skills.techleads.club/agents/codex/) documents project and global installation. From the project root, install only this skill with:

```
npx @tech-leads-club/agent-skills install --skill best-practices --agent codex
```

The project installation is written to `.codex/skills/best-practices/SKILL.md`. Appending `--global` installs it for every project on the machine. The [supported-agent catalog](https://agent-skills.techleads.club/agents/) lists the other current targets and their exact IDs.

I also smoke-tested the project command with the current CLI release, 1.6.3, in a temporary project. The installer created the expected Codex skill file with the `best-practices` frontmatter name.

In a Codex chat, mention the exact installed skill name and its origin together with the task:

```
Use the $best-practices skill from Tech Leads Club Agent Skills to review the checkout
flow for security, browser compatibility, runtime errors, and code quality. Inspect
first, report evidence and verification steps, and wait before editing files.
```

You can also select the skill from Codex's skills picker when it is available. The important part is that `best-practices` is the actual skill name, and that the request describes the review you want. A generic request to "make this better" does not establish the same scope.

The current [Cursor installation page](https://agent-skills.techleads.club/agents/cursor/) uses this project command:

```
npx @tech-leads-club/agent-skills install --skill best-practices --agent cursor
```

The skill is installed under `.cursor/skills/best-practices`. In Cursor Agent chat, type `/`, choose `best-practices` from the skill menu, and then send the task. Selecting the skill attaches it to that message; writing the name as ordinary text alone does not guarantee that Cursor selected it.

```
Review the checkout page for mixed content, missing security headers, unsafe DOM
insertion, deprecated browser APIs, console errors, and event-listener cleanup.
Return confirmed findings with file locations and verification steps. Do not edit yet.
```

Cursor introduced Agent Skills and slash-menu invocation in its [2.4 release notes](https://cursor.com/changelog/2-4). If the skill does not appear, check that the project installation completed and that the active Agent chat is using the same project.

Do not ask the agent to fix every item in one pass. A safer loop is:

A useful follow-up prompt is:

```
Using only the confirmed findings from your previous report, propose a remediation
plan for the two highest-risk items. Preserve the current payment flow, identify the
files that would change, and list the tests or HTTP checks that must pass afterward.
Do not edit files until I approve the plan.
```

After approval, keep the verification requirement in the prompt:

```
Implement the approved remediation for the CSP and mixed-content findings. Make the
smallest safe changes, run the relevant tests, and show the exact HTTP or repository
checks used to verify the result. Call out any deployment or human check that cannot
be proven locally.
```

A generic prompt may notice the obvious insecure URL, but it can miss the review's edges. This skill supplies a shared vocabulary and a bounded checklist: security headers alongside dependency audits, compatibility alongside deprecated APIs, runtime cleanup alongside console errors, and UX privacy alongside permission timing.

It also encodes boundaries. It does not claim to certify a site, replace a penetration test, or prove that a production deployment has the expected headers. It helps an agent perform a consistent first review and produce evidence that a human can challenge.

Before merging or releasing, a human should confirm that:

Useful references include the [official best-practices skill page](https://agent-skills.techleads.club/skills/best-practices/), its [official source](<https://github.com/tech-leads-club/agent-skills/tree/main/packages/skills-catalog/skills/(quality)/web-best-practices/SKILL.md>), [MDN Web Security](https://developer.mozilla.org/en-US/docs/Web/Security), the [OWASP Top 10](https://owasp.org/www-project-top-ten/), the [W3C Validator](https://validator.w3.org/), [SecurityHeaders.com](https://securityheaders.com), and [Mozilla Observatory](https://observatory.mozilla.org/).

This tutorial was prepared with AI assistance from the current `best-practices` skill source and official Tech Leads Club installation pages. The examples are illustrative. Review the repository, deployment, and security impact yourself before applying changes.

What web quality issue would you want an agent to prove before your next release?
