Λογότυπο Security Policy Generator

Security Policy Generator

Κοινότητα
v0lka
security-policy-generator

Analyze a project repository and build a project-specific threat model, then derive from it the secure coding rules that go into SECURITY.md — covering both classical security and the OWASP Top 10 for Agentic Applications 2026 (ASI01–ASI10). Use when the user asks to create a security policy, generate a threat model, or establish secure coding rules for a repository.

Επισκόπηση

Εκδότηςv0lka
Αποθετήριοskills
Όνομα δεξιότηταςsecurity-policy-generator
Αστέρια
28
Διακλαδώσεις
1
Συνοδευτικά αρχεία
2
Άδεια χρήσηςMIT
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • Συνοδευτικά αρχεία: 2

    Αρχεία script, πρότυπα και υλικό αναφοράς που μπορεί να διαβάζει το μοντέλο καθώς εργάζεται. Τα αρχεία είναι μόνο για ανάγνωση και δεν εκτελούνται ποτέ.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε στο GitHub από τον λογαριασμό v0lka. Ελέγξτε τα αρχεία της δεξιότητας στο αποθετήριο πριν την εγκαταστήσετε.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Security Policy Generator στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/v0lka/skills/tree/main/security/security-policy-generator
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Προσθήκη δεξιότητας → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που υποστηρίζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/v0lka/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/security/security-policy-generator .claude/skills/security-policy-generator
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Security Policy Generator σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Security Policy Generator μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι οδηγίες σε απλό κείμενο Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Security Policy Generator δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλο κατά τη διάρκεια της συνομιλίας

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

Security Policy Generator

Generate a project-specific SECURITY.md by analyzing the codebase, dependencies, configuration, and architecture. The output covers: supported versions, vulnerability reporting, threat model, security architecture, secure coding rules, and AI agent constraints.

⛔ Scope Boundary — read before doing anything

This skill does exactly two things and nothing more:

  1. Build an adequate threat model for this specific project — its assets, attack surface, trust boundaries, and the threats that apply given its real architecture and stack.
  2. Derive secure coding rules from that threat model, for both human contributors and coding agents.

This skill does NOT audit the project for compliance with the policy it builds, and it does NOT record any such audit results in SECURITY.md. Specifically, the agent MUST NOT:

  • Check whether the existing codebase already satisfies the rules it just wrote, or grade the project against the OWASP/ASI categories ("control present / gap / not applicable").
  • Populate SECURITY.md with findings about what is missing, broken, misconfigured, or non-compliant in the current code (e.g., "input validation absent on endpoint X", "rate limiting missing", "ASI01: no mitigation found").
  • Turn SECURITY.md into a code-review or penetration-test report.

A threat describes what could go wrong given the architecture (forward-looking): "because this service exposes a public API, injection is a relevant threat → therefore the coding rules require parameterized queries and input validation at all boundaries." A compliance finding describes what the code currently lacks — that belongs in a review report, an audit, or the issue tracker, never in SECURITY.md.

The codebase is studied only to understand the architecture well enough to model threats accurately and to tailor the coding rules to the real stack — never to score the project against the policy.

This skill produces a policy that covers two complementary risk domains:

  1. Classical application security — the OWASP Top 10 (Web/Cloud), injection, auth, crypto, supply chain, etc. Always applicable.
  2. Agentic application security — the OWASP Top 10 for Agentic Applications (2026), identifiers ASI01–ASI10. Applies whenever the project builds AI agents that plan, act, call tools, remember across sessions, or communicate with other agents on behalf of users.

The agentic section is conditional: a pure chatbot or RAG setup with no tool use and no multi-agent coordination needs only classical controls (and, where relevant, the OWASP Top 10 for LLM Applications). The moment the system takes actions on behalf of a user, the agentic threat model becomes mandatory. The reconnaissance script (scripts/recon.sh) auto-detects agentic indicators (LLM/agent SDKs, MCP, vector stores, prompt files, tool-calling patterns) and flags whether the agentic section should be generated.

Workflow

Copy this checklist and track progress:

Task Progress:
- [ ] Step 1: Project reconnaissance (incl. agentic indicators)
- [ ] Step 2: Identify assets and data flows (incl. agent assets)
- [ ] Step 3: Map attack surface (incl. agentic entry points)
- [ ] Step 4: Assess dependencies and supply chain
- [ ] Step 5: Identify security-relevant architecture (what domains apply)
- [ ] Step 6: Identify relevant agentic threats — OWASP ASI01–ASI10
- [ ] Step 7: Derive secure coding rules
- [ ] Step 8: Generate SECURITY.md
- [ ] Step 9: Register SECURITY.md in AGENTS.md
- [ ] Step 10: Validate completeness

Step 1: Project Reconnaissance

Gather foundational information about the project.

Automated discovery — run the reconnaissance script first, then supplement with manual checks:

bash
# Run the bundled reconnaissance script from the skill directory
bash scripts/recon.sh

This script automatically detects:

  • Language & framework (package files, source extensions)
  • Build tools & deployment indicators
  • Security configuration files
  • Dependency counts
  • Web frameworks, ORMs, auth libraries
  • Template engines, serialization libraries, HTTP clients
  • GraphQL libraries, cloud SDKs, CMS frameworks
  • Test frameworks
  • Dangerous code patterns (command execution, eval, deserialization, XXE)
  • Version/release information

Supplement the script output by checking:

What to findWhere to look
API surfaceOpenAPI specs, route definitions, gRPC proto files, GraphQL schemas
Auth mechanismAuth middleware, OAuth config, JWT libraries, session stores
Data storesDB drivers, ORM config, migration files, cache clients (Redis, Memcached)
Agent instructionsAGENTS.md, .github/copilot-instructions.md, .cursorrules, CLAUDE.md
Agentic componentsLLM/inference SDKs, agent frameworks (LangChain/LangGraph, CrewAI, AutoGen), MCP servers/config, vector stores, tool/function-calling definitions, system-prompt files

The reconnaissance script reports an "Agentic AI Indicators" section with a summary flag. If AGENTIC PROJECT DETECTED appears, the OWASP Top 10 for Agentic Applications (ASI01–ASI10) section MUST be generated; otherwise it may be omitted (classical controls suffice). Verify the flag manually against the "Agentic components" row above.

Key questions to clarify with user (use AskUserQuestion if available):

  1. What type of application is this? (web service / CLI tool / library / mobile app / desktop app)
  2. What deployment environment? (cloud provider, on-prem, hybrid)
  3. Who are the users? (internal employees / external customers / developers / public)
  4. Is there an existing security contact or process?
  5. Does the application include AI agents that take actions on behalf of users (call tools, write to systems, make decisions autonomously)? If yes, the agentic threat model (ASI01–ASI10) is required.

Step 2: Identify Assets and Data Flows

Determine what the project stores, processes, and transmits.

Look for:

  • Database models / schemas / migrations → identify PII, credentials, financial data
  • Environment variables and config files → identify secrets and sensitive config
  • File upload handlers → identify user-supplied content
  • API response shapes → identify what data leaves the system
  • Logging statements → identify what might be inadvertently logged
  • Cache keys → identify what's stored in shared memory

When agentic components are present, also look for:

  • System / role prompts → identify embedded guardrails and business logic (extraction reveals the agent's rules)
  • Agent credentials & tool secrets → the API keys/OAuth tokens the agent holds; their combined scope equals the blast radius (ASI03)
  • Agent memory stores & vector DBs → long-term memory and conversation history that persist across sessions (ASI06)
  • Tool & MCP definitions → schemas, descriptions, and permission mappings the agent trusts (ASI04)
  • Agent-generated artifacts → code, plans, and API calls produced at runtime (ASI05)
  • Training / embedding data → fine-tune datasets and embeddings (poisoning vectors)

Classify assets by sensitivity:

SensitivityExamples
CriticalSigning keys, DB master credentials, encryption keys, payment tokens
HighUser PII, session tokens, API keys, access logs with user context
MediumApplication config, internal IPs, non-sensitive business data
LowPublic content, marketing copy, open-source dependency list

Step 3: Map Attack Surface

Identify every point where untrusted input enters the system.

Checklist:

  • HTTP/gRPC/WebSocket endpoints (list all public routes)
  • Authentication endpoints (login, register, password reset, OAuth callbacks)
  • File upload endpoints
  • Webhook receivers
  • Message queue consumers
  • CLI arguments and stdin
  • Environment variables read at runtime
  • DNS/network exposure (ports, protocols)
  • CI/CD triggers (workflow_dispatch, PR events from forks)
  • Admin/debug endpoints (check if properly gated)

When agentic components are present, add these entry points:

  • Agent prompt inputs — user messages, RAG-retrieved documents, web pages, and tool outputs entering the model context (ASI01 indirect-injection vectors)
  • Agent tool / function-calling surface — every tool the agent may invoke, especially side-effecting operations (ASI02)
  • External tool & MCP registries — dynamically integrated tools, plugins, and schemas whose descriptions/permissions may be forged (ASI04)
  • Agent-generated code / shell execution — sandboxed or unsandboxed environments running model output (ASI05)
  • Agent memory stores — vector DBs, long-term memory, and conversation logs writable by the agent (ASI06)
  • Inter-agent message channels — orchestration buses, delegation protocols between agents (ASI07)
  • Human approval / HITL gates — review steps vulnerable to prompt-injection or approval-fatigue (ASI09)

For each entry point, note:

  • Input validation present? (type, length, format)
  • Authentication required?
  • Authorization granularity?
  • Rate limiting in place?

Step 4: Assess Dependencies and Supply Chain

Automated checks:

bash
# Node.js
npm audit --json 2>/dev/null || true
cat package-lock.json | python3 -c "
import json, sys
data = json.load(sys.stdin)
pkgs = data.get('packages', {})
print(f'Total packages: {len(pkgs)}')
direct = [k for k in pkgs if k.count('/node_modules/') == 1]
print(f'Direct dependencies: {len(direct)}')
"

# Go
go list -m all 2>/dev/null | wc -l
govulncheck ./... 2>/dev/null || true

# Python
pip-audit 2>/dev/null || safety check 2>/dev/null || true

# Rust
cargo audit 2>/dev/null || true

Assess:

  • Total dependency count (direct + transitive)
  • Known vulnerabilities (critical/high/medium)
  • Dependency freshness (last update dates of key deps)
  • Pinning strategy (lockfile present? hash verification?)
  • Whether security-critical functions use well-known libraries vs custom code
  • Agentic supply chain (ASI04): third-party tools, MCP servers, and plugin packages — are they pinned, vetted, provenance-verified? Are tool descriptions reviewed for deceptive language? Is dynamic tool discovery allowed?

Step 5: Identify Security-Relevant Architecture

The goal here is not to audit whether the codebase's existing controls are correct or complete — that is out of scope (see Scope Boundary). The goal is to recognize which security domains this architecture actually involves, so the threat model (Step 3) and the coding rules (Step 7) cover the right ground and stay relevant to the real stack rather than listing every generic control.

Scan the codebase to answer one question per domain: "Is this domain relevant to how this system is built?" Use the categories below as a checklist of domains to consider:

CategoryWhat "relevant" means here
AuthNThe system authenticates anyone (users, services) — middleware, tokens, sessions
AuthZThe system distinguishes permissions — roles, guards, policy engines
Input validationThe system accepts external input — API params, CLI args, file uploads, webhooks
CSRF protectionThe system has browser-facing state-changing endpoints
Rate limitingThe system exposes public or shared endpoints
EncryptionThe system stores or transmits sensitive data
Secret managementThe system handles secrets — API keys, DB credentials, signing keys
Logging & auditThe system produces security-relevant events worth recording
Security headersThe system serves HTML/web content to browsers
Container securityThe system ships as a container image
Agent guardrails (agentic)The system builds agents that consume untrusted content in-context (ASI01)
Tool-call governance (agentic)The system's agents invoke side-effecting tools (ASI02)
Code-exec sandboxing (agentic)The system runs agent-generated code or shell commands (ASI05)
Memory protection (agentic)The system persists agent memory/vector stores across sessions (ASI06)
Inter-agent security (agentic)The system coordinates multiple agents over a message channel (ASI07)
Resilience (agentic)The system chains agents/tools whose failures could cascade (ASI08)

For each domain you mark relevant, note only enough to inform the threat model and rules:

  • Why it's relevant — the architectural reason (e.g., "public REST API with session cookies → CSRF domain applies")
  • What the rules must address — the concrete concerns the coding rules will need to cover for this domain

Do not record implementation locations, coverage gaps, or "what's missing" — those are review findings, not policy inputs.


Step 6: Identify Relevant Agentic Threats — OWASP Top 10 for Agentic Applications (ASI01–ASI10)

Conditional step. Skip entirely if Step 1 did not detect agentic components (the recon script prints No strong agentic indicators). For a pure chatbot / RAG system with no tool use and no multi-agent coordination, classical controls and the OWASP Top 10 for LLM Applications suffice. The moment the system takes actions on behalf of a user, this step is required.

Not an audit. As with Step 5, the goal is not to score the current codebase ("does it pass ASI02?"). It is to determine, per category, whether the threat applies to how this system is built, and if so, what the coding rules (Step 7) and the threat-model entries must require. Do not record "control present / gap / not applicable" verdicts against the existing code, and do not push anything into Known Risks based on what the code currently lacks.

The unifying principle is least agency — grant an agent only the minimum autonomy required for a safe, bounded task. Ask, for every agent: what is its reach (least privilege) AND what is its latitude within that reach (least agency)?

For each category, answer two questions only: (a) Is this threat relevant given the architecture? (b) If yes, what must the rules require? Skip any category the architecture provably doesn't involve, noting why.

  • ASI01 — Agent Goal Hijacking. Relevant when agents ingest untrusted content (user input, tool outputs, retrieved docs, web pages) into context. If so, the rules must require instruction/data separation, input/output filtering, privilege separation between instructions and data, and treating all retrieved/tool-produced text as data.
  • ASI02 — Tool Misuse and Exploitation. Relevant when agents can call tools, especially side-effecting ones. If so, the rules must require per-tool least privilege, validated parameter schemas, restriction of dangerous operations regardless of agent request, a tool-call allowlist, budget/loop caps, and approval gates for irreversible actions.
  • ASI03 — Agent Identity and Privilege Abuse. Relevant when agents act under delegated or inherited credentials. If so, the rules must require per-agent verified identities, scoped/rotated credentials, confused-deputy prevention, and action logging with the verified principal.
  • ASI04 — Agentic Supply Chain Compromise. Relevant when third-party tools, MCP servers, or plugins are integrated (especially dynamically). If so, the rules must require pinning/vetting, description review, provenance verification, and sandboxing of new tools.
  • ASI05 — Unexpected Code Execution. Relevant when agent-generated code or shell commands run. If so, the rules must require sandbox isolation (restricted FS/network), approval gates for high-risk execution, argument scanning, ephemeral cleanup, and resource limits.
  • ASI06 — Memory and Context Poisoning. Relevant when agent memory/vector stores persist across sessions. If so, the rules must require write/read validation, poisoning-pattern scanning, purge capability, session isolation, and retention/TTL.
  • ASI07 — Insecure Inter-Agent Communication. Relevant when agents exchange messages over a bus or delegation protocol. If so, the rules must require authenticated/integrity-protected messages, delegation-depth limits, impersonation resistance, defined cross-agent permissions, and transport security.
  • ASI08 — Cascading Agent Failures. Relevant when agents/tools are chained such that one failure propagates. If so, the rules must require circuit breakers, fail-closed behavior, bulkheads, per-dependency fallback, and cascade monitoring.
  • ASI09 — Human-Agent Trust Exploitation. Relevant when human approval/HITL gates exist. If so, the rules must require showing raw intent (not agent summaries), approval rate-limiting, AI-generated labeling, and policy-engine-generated justifications.
  • ASI10 — Rogue Agents. Relevant when agents operate with any autonomy (drift, collusion, runaway). If so, the rules must require behavioral-drift monitoring, an auditable receipt chain, a kill-switch/circuit-breaker, periodic alignment checks, and autonomy bounds (max steps, time-boxed sessions).

Step 7: Derive Secure Coding Rules

Based on the discovered tech stack, generate project-specific coding rules.

Language-specific rule selection:

StackKey rules to emphasize
Node.js/TypeScriptPrototype pollution, ReDoS, event loop blocking, npm supply chain
GoInteger overflow, goroutine leaks, unsafe package usage, TOCTOU in file ops
PythonPickle deserialization, SSTI, subprocess injection, yaml.safe_load
Rustunsafe block justification, FFI boundary validation
Java/KotlinDeserialization (Jackson/Gson config), JNDI injection, XML external entities
React/FrontendXSS via dangerouslySetInnerHTML, open redirects, token storage in localStorage

Framework-specific rules:

  • ORM: N+1 queries as DoS vector, mass assignment protection
  • GraphQL: query depth/complexity limits, introspection in prod
  • gRPC: message size limits, deadline propagation
  • WebSocket: origin validation, message rate limiting

Agentic-specific rules (when ASI01–ASI10 apply):

  • Prompt construction: strict instruction/data separation with delimiters; treat retrieved/tool-produced text as adversarial (ASI01)
  • Tool integration: per-tool least privilege, validated parameter schemas, allowlist, budget/loop caps, irreversible-action gates (ASI02)
  • Code execution: sandbox with restricted FS/network, ephemeral cleanup, argument scanning (ASI05)
  • Memory: validate before write/read, scan for poisoning, isolate per session, enforce TTL (ASI06)
  • Inter-agent messaging: authenticate and sign messages, limit delegation depth, fail-closed (ASI07)

Step 8: Generate SECURITY.md

Use the template from template.md and fill in each section with discovered data.

Section-by-section guidance:

SectionSource
Supported VersionsGit tags, CHANGELOG, CI release config
Reporting a VulnerabilityUser input (or infer from existing SECURITY.md / CONTRIBUTING.md)
AssetsStep 2 output
Threat ActorsStandard list, adjusted to project's exposure level
Attack SurfaceStep 3 output
Trust BoundariesInfer from architecture (edge → app → data layer); add agent trust boundaries if agentic
Known RisksInherent architectural risks the design knowingly accepts (e.g., "MVP uses a single shared DB user") — never a list of what the current code is missing vs. the policy; compliance findings do not go here
Security ArchitectureStep 5 output — which security domains apply to this architecture and what the policy requires of each
Agentic Application SecurityStep 6 output (ASI01–ASI10) — include only if agentic indicators detected
Secure Coding GuidelinesStep 7 output
Rules for AI Coding AgentsDerived from stack + project-specific patterns + agentic constraints (ASI09/ASI10)
Security-Related Config FilesFiles found in Step 1

Writing rules:

  • Remove {{ }} placeholder markers from filled sections
  • Keep {{ }} only for sections that could not be filled (note why)
  • Be specific: reference actual file paths, library names, config values
  • Include concrete examples from the codebase where helpful
  • Mark assumptions explicitly: "Assumed based on [evidence]"

Step 9: Register SECURITY.md in AGENTS.md

Ensure that AI coding agents working on the repository are aware of the security policy. Add or update a reference to SECURITY.md in the project's AGENTS.md file.

If AGENTS.md exists — add a section (or append to an existing "Security" / "Guidelines" section):

markdown
## Security Policy

This project maintains a security policy in [SECURITY.md](./SECURITY.md).
All AI coding agents MUST read and follow SECURITY.md before making changes.
It contains:

- Threat model and trust boundaries
- Secure coding guidelines specific to this project's stack
- Hard constraints and forbidden patterns for AI agents
- Vulnerability reporting procedures
- Agentic security controls (OWASP Top 10 for Agentic Applications ASI01–ASI10), where applicable

Any code contribution that violates the rules in SECURITY.md will be rejected.

If AGENTS.md does not exist — create it with at minimum the security reference above, plus a brief header:

markdown
# Agent Guidelines

Instructions for AI coding agents (GitHub Copilot, Cursor, Qoder, etc.)
working on this repository.

## Security Policy

This project maintains a security policy in [SECURITY.md](./SECURITY.md).
All AI coding agents MUST read and follow SECURITY.md before making changes.
It contains:

- Threat model and trust boundaries
- Secure coding guidelines specific to this project's stack
- Hard constraints and forbidden patterns for AI agents
- Vulnerability reporting procedures
- Agentic security controls (OWASP Top 10 for Agentic Applications ASI01–ASI10), where applicable

Any code contribution that violates the rules in SECURITY.md will be rejected.

Important: Do not duplicate the full security rules in AGENTS.md — reference SECURITY.md as the single source of truth. AGENTS.md should only contain a pointer and a brief summary of what agents will find there.


Step 10: Validate Completeness

After generating, verify:

  • Every section either filled or marked with reason for incompleteness
  • No placeholder text left unmarked
  • Asset sensitivity ratings are justified
  • Attack surface entries match actual routes in codebase
  • Dependency counts match actual lockfile
  • Secure coding rules match the actual tech stack (no irrelevant rules)
  • AI agent rules reference patterns actually present in the project
  • No secrets or sensitive internal details exposed in the document
  • Revision history has today's date
  • AGENTS.md exists and references SECURITY.md
  • AGENTS.md does NOT duplicate security rules (only references them)
  • If agentic indicators were detected: ASI01–ASI10 section present, with each applicable category stating what the rules require (non-applicable categories justified and skipped)
  • If no agentic indicators: the Agentic Application Security section is explicitly omitted with a one-line note (no stale placeholders)
  • No audit findings in the document — SECURITY.md contains no statements grading the current code against the policy (e.g., "missing rate limiting on /api/x", "ASI02: no mitigation found", "input validation absent"). Known Risks lists only inherent architectural trade-offs the design knowingly accepts, never code-compliance gaps.

Output Location

Save the generated SECURITY.md to the project root directory. If one already exists, back it up first and present both versions for comparison.

Tone and Audience

The document will be read by:

  • Security researchers evaluating the project
  • New contributors learning project security standards
  • AI coding agents operating on the codebase
  • Auditors reviewing the security policy

Write in clear, imperative, technical language. Avoid marketing fluff. Prefer concrete over abstract.

Συνοδευτικά αρχεία

Το μοντέλο τα διαβάζει όποτε χρειάζεται, όσο η δεξιότητα είναι φορτωμένη. Διατίθενται ως αρχεία για ανάγνωση και δεν εκτελούνται ποτέ.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Security Policy Generator;

Analyze a project repository and build a project-specific threat model, then derive from it the secure coding rules that go into SECURITY.md — covering both classical security and the OWASP Top 10 for Agentic Applications 2026 (ASI01–ASI10). Use when the user asks to create a security policy, generate a threat model, or establish secure coding rules for a repository.

Γιατί να χρησιμοποιήσετε τη δεξιότητα Security Policy Generator στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Security Policy Generator είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη δεξιότητα Security Policy Generator στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε τη διεύθυνση https://github.com/v0lka/skills/tree/main/security/security-policy-generator. Το TypingMind διαβάζει το αρχείο SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Security Policy Generator;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη δεξιότητα Security Policy Generator;

Με όσα θέλετε. Στο TypingMind μπορείτε να χρησιμοποιήσετε τη δεξιότητα Security Policy Generator με οποιοδήποτε μοντέλο υποστηρίζει δεξιότητες, όπως τα GPT, Claude, Gemini, Grok, DeepSeek, Mistral και Llama, χρησιμοποιώντας τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Security Policy Generator;

Ναι. Δημοσιεύεται στο GitHub από τον λογαριασμό v0lka με την άδεια χρήσης MIT. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων

Δημιουργήστε τώρα τον δικό σας χώρο εργασίας AI

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇