ns-best-practices

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Best Practices

最佳实践

Focused quality + security hygiene pass — not substitute for senior code review or visual design direction.
专注于质量与安全合规检查——不可替代资深代码评审或视觉设计指导。

Session boot

Session启动

See
../ns-harness/references/session-boot.md
. Read
architecture-rules.md
+ security-related harness rules.
请参阅
../ns-harness/references/session-boot.md
。阅读
architecture-rules.md
及安全相关的harness规则。

When to use

使用场景

RequestThis skillUse instead
Security headers / CSP / HSTSYes
Dependency audit / known CVE sweepYes
Browser compatibility baselineYes
Accessibility quick pass (landmarks, alt, labels)Yes
"Review my UI" / Web Interface Guidelines / UX a11y auditYes (
references/ui-guidelines-review.md
)
Distinctive visual redesign / anti-slop aestheticsNo
ns-frontend-design
"Review this MR" / SOLID deep diveNo
ns-reviewer
New feature implementationNo
ns-coder
/
ns-spec-driven
请求场景本技能适用改用其他技能
安全请求头 / CSP / HSTS
依赖项审计 / 已知CVE排查
浏览器兼容性基准检查
无障碍快速检查(标记、替代文本、标签)
“评审我的UI” / Web界面指南 / UX无障碍审计是(参考
references/ui-guidelines-review.md
独特视觉重设计 / 优化通用UI风格
ns-frontend-design
“评审我的MR” / SOLID深度分析
ns-reviewer
新功能开发
ns-coder
/
ns-spec-driven

Workflow

工作流程

  1. Scope — web app surface, API gateway, static assets, or
    prototype/
    .
  2. Baseline — read
    references/checklist.md
    ; tick only applicable sections (offline security/compat/a11y).
  3. Guidelines — UI/a11y/UX audit or invoker is
    ns-proto-creator
    close-out: read
    references/ui-guidelines-review.md
    fully (bundled rules; no external fetch).
  4. Scan — configs (nginx, Vite, Next, Laravel middleware, etc.); no stack assume.
  5. Report — findings table: severity, location (
    file:line
    when possible), recommendation, effort.
  6. Fix — minimal safe diffs when user asked implement; else report only.
  1. 范围 — 网页应用界面、API网关、静态资源或
    prototype/
    目录。
  2. 基准检查 — 阅读
    references/checklist.md
    ;仅勾选适用的部分(离线安全/兼容性/无障碍)。
  3. 指南遵循 — 若为UI/a11y/UX审计 调用者为
    ns-proto-creator
    收尾阶段:完整阅读
    references/ui-guidelines-review.md
    (内置规则;无需外部获取)。
  4. 扫描检查 — 检查配置文件(nginx、Vite、Next、Laravel中间件等);不预设技术栈。
  5. 报告输出 — 生成发现问题表格:包含严重程度、位置(尽可能标注
    文件:行号
    )、建议方案、工作量。
  6. 问题修复 — 若用户要求实施,仅生成最小化的安全修改;否则仅输出报告。

Overlap with other skills

与其他技能的重叠

  • This skill: cross-cutting hygiene + Web Interface Guidelines compliance.
  • ns-frontend-design: distinctive look, typography, motion, anti–generic AI UI.
  • ns-reviewer: change-specific SOLID, tests, maintainability on diff.
Delivery may use sequentially — face skills route explicit.
  • 本技能: 跨领域合规检查 + Web界面指南合规。
  • ns-frontend-design: 独特视觉风格、排版、动效、规避通用AI生成UI。
  • ns-reviewer: 针对代码变更的SOLID原则、测试、可维护性评审。
可按顺序使用不同技能——明确选择对应技能路径。

Forbidden

禁止行为

  • Declare production secure without evidence
  • Break existing integrations without calling out risk
  • Replace threat modeling for high-risk domains (escalate to human)
  • Skip
    references/ui-guidelines-review.md
    on UI audit / proto close-out and claim full UI pass
  • 无证据情况下宣称生产环境安全
  • 未提及风险的情况下破坏现有集成
  • 替代高风险领域的威胁建模(需升级给人工处理)
  • 在UI审计/原型收尾阶段跳过
    references/ui-guidelines-review.md
    却宣称完成完整UI检查