شعار 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 يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 2

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها v0lka على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Security Policy Generator في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/v0lka/skills/tree/main/security/security-policy-generator
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق 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 وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Security Policy Generator تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة 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.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي 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 الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Security Policy Generator؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Security Policy Generator؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Security Policy Generator معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Security Policy Generator مجانية؟

نعم. نشرها v0lka على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇