Community程式設計與開發github.com

mianhtsys/landingMod3

在軟體需求、設計、實作與審查階段納入安全性考量,預防缺陷進入生產環境。

landingMod3 是什麼?

這是一個以「預防」為核心的軟體安全工程技能,旨在幫助開發團隊在缺陷進入生產環境之前,將安全決策內建於每一個開發環節。技能涵蓋從安全需求定義、威脅建模、設計安全架構、實作安全控制,到程式碼審查與發佈驗證的完整工作流程。它支援 Claude Code、Cursor、Codex 等 AI 代理平台,並提供一系列參考文件與範本,協助團隊系統性地處理資產識別、資料流分析、身分驗證、授權、輸入驗證、密碼管理、依賴安全、多租戶隔離、安全日誌與 AI/LLM 安全等關鍵主題。此技能強調「證據導向」的安全決策,要求記錄假設、蒐集的證據、殘餘風險以及已接受例外情況的負責人,而非聲稱某個設計或發佈是絕對安全的。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/mianhtsys/landingMod3/tree/HEAD/MODULO_3_DESARROLLO_AL_LADO_DEL_CLIENTE_Y_SERVIDOR_WEB/architecture-skills-framework/.agents/skills/secure-software-engineering

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

安全軟體工程

在缺陷進入生產環境之前,將安全內建於決策中。這是一個以預防為導向的工作流程,並非聲明某個設計或版本是安全的。請記錄假設、蒐集的證據、殘餘風險,以及任何已接受例外情況的負責人。

使用時機

當你為新功能、整合、服務、API、租戶邊界、AI 能力或版本,回答「我們如何安全地建置這個?」時,使用此技能。請在早期就開始,並在架構、資料流、依賴項目或威脅發生變化時,重新審視受影響的決策。

請勿將其用於授權的建置後評估:請改用 security-audit-methodology。請勿將其用作現有程式碼庫的漏洞掃描器;請使用授權的掃描工具或專業安全評估。當任務是將產生的需求和階段關卡正式化時,請使用 spec-driven-development;若要做出有證據支持的完成聲明,請使用 verification-methodology。

不使用的時機

請使用 multi-tenant-saas-architecture 處理端到端的租戶模型、控制/應用平面放置、商業生命週期及 SaaS 運作架構;此技能負責威脅模型與可強制執行的隔離控制。請使用 capacity-and-cost-engineering 處理量化租戶需求、配額大小、公平性、負載/耐久性測試證據以及單位成本權衡。請將隱私生命週期與刪除驗證工件導向 privacy-engineering。

工作流程

  1. 需求:識別資產、參與者、危害、資料分類、法規或合約限制,以及安全成果。在選擇控制措施之前,撰寫可測試的驗收標準。
  2. 威脅模型:繪製資料流與信任邊界;陳述假設、濫用案例、緩解措施與殘餘風險。STRIDE 是可選用的詞彙,並非詳盡的方法。
  3. 設計:選擇符合信任模型的控制措施,包括伺服器端授權、資料隔離、安全失效行為以及 AI 能力邊界。說明被拒絕的替代方案。
  4. 實作:使每個邊界在程式碼和組態中都可強制執行;保護輸入、輸出、憑證、依賴項目、日誌和操作路徑。
  5. 審查與發佈:使用直接證據驗證控制措施,審查變更以找出繞過方式,保留發佈證據,並將事件或險些失誤回饋到需求和測試中。

當證據與某項假設矛盾或設計改變時,循環回到受影響的階段。當每個重大決策都有可問責的負責人、直接證據或明確的差距,以及殘餘風險的處理方式時,即可停止。

參考檔案

載入時機檔案
你需要一個版本鎖定的來源及其決策使用方式references/source-index.md
定義資產、邊界、濫用案例或安全標準references/security-requirements-threat-modeling.md
選擇身分、工作階段、權限或服務存取references/authentication-authorization.md
處理請求、檔案、URL、序列化資料、輸出或 AI 內容references/input-validation-data-handling.md
新增金鑰、令牌、憑證或簽章材料references/secrets-lifecycle.md
新增、更新、建置或發佈依賴項目references/dependency-supply-chain.md
設計日誌、稽核事件、監控或鑑識證據references/secure-logging-audit.md
跨租戶共享基礎設施或資料,包括控制/應用平面、租戶上下文、支援存取或租戶生命週期證明references/multi-tenant-isolation.md
審查變更或定義安全審查關卡references/secure-code-review.md
準備發佈用的工件、例外情況、回滾機制或應對措施references/release-evidence.md;載入 release-engineering 以將這些控制措施和證據貫穿建置、註冊表、提升和部署關卡
從事件、險些失誤或逃逸的缺陷中學習references/incident-learning.md
設計 LLM、RAG 管線、模型整合或代理工具references/ai-llm-security.md

範本

使用時機檔案
開始一個功能或系統的威脅模型templates/lightweight-threat-model.md
為規格或變更撰寫安全驗收標準templates/security-acceptance-criteria.md
審查安全相關的程式碼變更templates/secure-code-review-checklist.md

護欄

  • 將提示詞、檢索內容、工具輸出、Webhook、檔案以及用戶端提供的身分或租戶欄位視為不受信任,直到邊界驗證它們為止。
  • 框架、掃描、SBOM、簽章、來源證明、歸屬證明或檢查清單,是關於有限主張的證據,而非軟體安全的證明。
  • 不要將某項控制措施視為通用:身分驗證協定取決於信任模型;資料列層級安全僅是隔離機制之一;密碼輪換遵循事件和風險;控制措施需要在其實際部署環境中進行驗證。
  • 當已完成的威脅模型和安全驗收標準會暴露系統邊界或弱點時,請保持其機密性。使用佔位符,切勿使用真實的憑證或私有部署細節。

可攜性

使用主機環境的正常機制來建立工件、執行測試和取得核准。不要假設特定的供應商、雲端、身分提供者、資料庫、CI 系統或部署拓撲。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

mianhtsys/landingMod3

Implement WCAG 2.2 compliant interfaces with mobile accessibility, inclusive design patterns, and assistive technology support. Use when auditing accessibility, implementing ARIA patterns, building for screen readers, or ensuring inclusive user experiences.

mianhtsys/landingMod3

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

mianhtsys/landingMod3

Diseña y compara alternativas arquitectónicas trazables a RF/RNF sin implementar código.

mianhtsys/landingMod3

Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design. Use this skill when designing clean architecture for a new microservice, when refactoring a monolith to use bounded contexts, when implementing hexagonal or onion architecture patterns, or when debugging dependency cycles between application layers.

mianhtsys/landingMod3

Revisión adversarial de la arquitectura contra RF/RNF, detectando contradicciones, cobertura faltante y complejidad innecesaria.

mianhtsys/landingMod3

Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when implementing auth systems, securing APIs, or debugging security issues.

mianhtsys/landingMod3

>- Generate grounded-and-verified, engine-agnostic database documentation that reaches 100% parity with the real schema. Introspects the LIVE database as ground truth and cross-validates it against ORM models, migrations, generated types, seeds, and application queries, then proves completeness by diffing the docs back against the database. Produces ER diagrams (mermaid), per-table data dictionaries, and a machine-readable schema.json. Works with PostgreSQL, MySQL, SQL Server, and SQLite across any ORM (Prisma, TypeORM, Drizzle, Sequelize, Knex, Django, Rails) or raw SQL. Use when asked to document a database, produce an ERD or data dictionary, write db/schema docs, audit schema drift, or refresh existing DB docs.

mianhtsys/landingMod3

Compara estrategias de persistencia y motores de datos según consistencia, concurrencia, volumen, recuperación y operación.

mianhtsys/landingMod3

Design robust, scalable database schemas for SQL and NoSQL databases. Provides normalization guidelines, indexing strategies, migration patterns, constraint design, and performance optimization. Ensures data integrity, query performance, and maintainable data models.

mianhtsys/landingMod3

Consolida análisis especializados en una recomendación arquitectónica, matriz de decisión, ADR y plan de validación.

mianhtsys/landingMod3

Master error handling patterns across languages including exceptions, Result types, error propagation, and graceful degradation to build resilient applications. Use when implementing error handling, designing APIs, or improving application reliability.

mianhtsys/landingMod3

Build and maintain web frontends — component architecture, state management, API integration, responsive layout, client-side performance, and frontend testing patterns. Framework agnostic, focused on web frontend implementation. Do not use for backend service implementation, data engineering, or platform infrastructure work.

mianhtsys/landingMod3

Evalúa despliegue, contenedores, escalado, alta disponibilidad, observabilidad, backup, recuperación y CI/CD de forma proporcional.

mianhtsys/landingMod3

Execute read-only SQL queries against multiple Microsoft SQL Server databases. Use when: (1) querying MSSQL/SQL Server databases, (2) exploring database schemas/tables, (3) running SELECT queries for data analysis, (4) checking database contents. Supports multiple database connections with descriptions for intelligent auto-selection. Blocks all write operations (INSERT, UPDATE, DELETE, DROP, etc.) for safety.

mianhtsys/landingMod3

Generate and maintain OpenAPI 3.1 specifications from code, design-first specs, and validation patterns. Use when creating API documentation, generating SDKs, or ensuring API contract compliance.

mianhtsys/landingMod3

PHP 8.0+ development — XAMPP, RESTful APIs, PDO/MySQL/MariaDB, and authentication. Use when building PHP backends, creating API endpoints, configuring XAMPP, or integrating PHP with databases.

mianhtsys/landingMod3

Use this skill when designing or reviewing a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features

mianhtsys/landingMod3

Analiza requisitos funcionales y no funcionales, reglas, restricciones, capacidad y ambigüedades antes de seleccionar tecnologías.

mianhtsys/landingMod3

Implement modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first breakpoint strategies. Use when building adaptive interfaces, implementing fluid layouts, or creating component-level responsive behavior.

mianhtsys/landingMod3

Revisa seguridad arquitectónica, identidad, autorización, secretos, APIs, auditoría, fraude y resiliencia antes de implementar.

相關技能