About ns-code-best-practices
A focused quality and security hygiene skill for web apps, APIs, and static assets. It checks applicable security, compatibility, and accessibility concerns, then reports findings or makes minimal fixes when requested.
Key features
- 01Security configuration and dependency checks
- 02Browser compatibility review
- 03Accessibility quick checks
- 04Guideline-based UI audits
- 05Findings with severity and recommendations
Use cases
- 01Checking security headers and CSP
- 02Sweeping dependencies for known CVEs
- 03Reviewing web accessibility basics
- 04Auditing UI against guidelines
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ nextstage-brasil/ skills --skill ns-code-best-practicesAfter installing, type/ns-code-best-practicesin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
evals/evals.jsonreferences/checklist.mdui-guidelines-review.mdDetails
From the project READMEBest Practices
Focused quality + security hygiene pass — not substitute for senior code review or visual design direction.
Harness discovery
See ../ns-harness/references/harness-discovery.md. Read architecture-rules.md + security-related harness rules.
When to use
| Request | This skill | Use instead |
|---|---|---|
| Security headers / CSP / HSTS | Yes | — |
| Dependency audit / known CVE sweep | Yes | — |
| Browser compatibility baseline | Yes | — |
| Accessibility quick pass (landmarks, alt, labels) | Yes | — |
| "Review my UI" / Web Interface Guidelines / UX a11y audit | Yes (guidelines fetch) | — |
| Distinctive visual redesign / anti-slop aesthetics | No | ns-code-frontend-design |
| "Review this MR" / SOLID deep dive | No | ns-code-reviewer |
| New feature implementation | No | ns-code-coder / ns-spec-driven |
Workflow
- Scope — web app surface, API gateway, static assets, or
{product_root}/prototype/; confirm{product_root}. - Baseline — read
references/checklist.md; tick only applicable sections (offline security/compat/a11y). - Guidelines — UI/a11y/UX audit or invoker is
ns-proto-creatorclose-out: followreferences/ui-guidelines-review.md(WebFetch required). - Scan — configs (nginx, Vite, Next, Laravel middleware, etc.); no stack assume.
- Report — findings table: severity, location (
file:linewhen possible), recommendation, effort. - Fix — minimal safe diffs when user asked implement; else report only.
Overlap with other skills
- This skill: cross-cutting hygiene + Web Interface Guidelines compliance.
- ns-code-frontend-design: distinctive look, typography, motion, anti–generic AI UI.
- ns-code-reviewer: change-specific SOLID, tests, maintainability on diff.
Delivery may use sequentially — face skills route explicit.
Forbidden
- Declare production secure without evidence
- Break existing integrations without calling out risk
- Replace threat modeling for high-risk domains (escalate to human)
- Skip guidelines fetch on UI audit / proto close-out and claim full UI pass
Comments
Markdown supported