Skip to main content

secure-code-review

Security code review for HTML/CSS/JavaScript in static websites

来源信息

仓库
Hack23/riksdagsmonitor
最近来源活动
2026年4月16日 09:31
检测到的 SKILL.md 语言
英语
星标
13
Forks
3

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
secure-code-review
description
Security code review for HTML/CSS/JavaScript in static websites
license
Apache-2.0
# Secure Code Review (Static Site) ## 🔴 AI FIRST Quality Principle > **Apply the AI FIRST principle: never accept first-pass quality. Minimum 2 iterations. Read all output, improve every section. No shortcuts.** ## Purpose Perform security-focused code reviews for static HTML/CSS websites. ## Review Checklist ### HTML Security - ✅ No inline JavaScript (CSP compliance) - ✅ Semantic HTML5 elements - ✅ ARIA labels for accessibility - ✅ Proper `<meta>` tags (CSP, referrer, viewport) - ✅ External links use `rel="noopener noreferrer"` - ✅ Forms use `method="POST"` and HTTPS action ### CSS Security - ✅ No `@import` from external domains - ✅ No `url()` to untrusted sources - ✅ Inline styles minimized - ✅ No user-controlled CSS injection ### Link Security - ✅ All links use HTTPS - ✅ No broken links (linkinator check) - ✅ External links reviewed for legitimacy ### Configuration Security - ✅ No secrets in repository - ✅ `.gitignore` configured correctly - ✅ Workflow permissions minimal - ✅ Branch protection enabled ## Automated Checks ```yaml # PR review workflow - HTMLHint validation - CSSLint validation - Link checking - Secret scanning - Accessibility audit ``` ## References - **SECURITY.md**: Security policy - **CONTRIBUTING.md**: Contribution guidelines
在 GitHub 查看