AGENTS.md · prompt-security/clawsec
AGENTS.md from prompt-security/clawsec: 64 lines covering Project Structure & Module Organization, Build, Test, and Development Commands, Coding Style &…
Template by prompt-security
Install
Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/prompt-security/clawsec/main/AGENTS.md -o AGENTS.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: prompt-engineering
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.
- For
- Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
- Length
- 64 lines
- File
AGENTS.md
Sections
- Project Structure & Module Organization
- Build, Test, and Development Commands
- Coding Style & Naming Conventions
- Testing Guidelines
- Pull Request Guidelines
- Agent Collaboration & Git Safety
First lines (shown under the repo's AGPL-3.0 license)
# Repository Guidelines ## Project Structure & Module Organization ClawSec combines a Vite + React frontend with security skill packages and release tooling. - Frontend entrypoints: `index.tsx`, `App.tsx` - UI and routes: `components/`, `pages/` - Shared types/constants: `types.ts`, `constants.ts` - Wiki source docs: `wiki/` (synced to GitHub Wiki by `.github/workflows/wiki-sync.yml`) - Generated wiki exports: `public/wiki/` (`llms.txt` outputs; generated locally/CI and gitignored) - Skills: `skills/<skill-name>/` (`skill.json`, `SKILL.md`, optional `scripts/`, `test/`) - Advisory feed: `advisories/feed.json`, `advisories/feed.json.sig` - Automation: `scripts/`, `.github/workflows/` - Python utilities: `utils/validate_skill.py`, `utils/package_skill.py` ## Build, Test, and Development Commands - `npm install`: install dependencies. - `npm run dev`: run local Vite server. - `npm run build`: create production build (CI gate). - `npm run preview`: preview built app. - `npm run gen:wiki-llms`: generate wiki `llms.txt` exports from `wiki/` into `public/wiki/`. - `./scripts/prepare-to-push.sh [--fix]`: run lint, types, build, and security checks. - `./scripts/populate-local-wiki.sh`: regenerate local wiki `llms.txt` exports for preview. - `npx eslint . --ext .ts,.tsx,.js,.jsx,.mjs --max-warnings 0`: lint JS/TS. - `npx tsc --noEmit`: type-check TypeScript. - `node skills/clawsec-suite/test/feed_verification.test.mjs`: run a skill-local Node test. - `python utils/validate_skill.py skills/<skill-name>`: validate skill schema/metadata. ## Coding Style & Naming Conventions - Use TypeScript/TSX for frontend code and ESM for scripts. - Follow `eslint.config.js`; prefix intentionally unused vars/args with `_`. - Python under `utils/` follows `pyproject.toml` Ruff/Bandit rules (line length 120). - Name React files in PascalCase (for example, `SkillCard.tsx`), skill directories in kebab-case (for example, `skills/clawsec-feed`), and tests as `*.test.mjs`. ## Testing Guidelines There is no root `npm test`; tests are mostly skill-local. - Run changed tests directly: `node skills/<skill>/test/<name>.test.mjs`. - For frontend/config changes, run ESLint, `npx tsc --noEmit`, and `npm run build`. - For wiki rendering/export changes, run `npm run gen:wiki-llms` and `npm run build`. - For Python utility updates, run `ruff check utils/` and `bandit -r utils/ -ll`. ## Pull Request Guidelines - Follow Conventional Commits: `feat(scope): ...`, `fix(scope): ...`, `chore(scope): ...`. - Use skill branches like `skill/<name>-...`. - Keep PRs focused and include summary, security benefit, and testing performed. - Keep versions aligned between `skills/<skill>/skill.json` and `skills/<skill>/SKILL.md`. - Do not push release tags from PR branches; releases are tagged from `main`. - Do not commit generated `public/wiki/` artifacts; edit `wiki/` source files instead. ## Agent Collaboration & Git Safety - Delete unused or obsolete files only when your changes make them irrelevant; revert files only when the change is yours or explicitly requested. If a git operation creates uncertainty about another agent’s in-flight work, stop and coordinate instead of deleting. - Before deleting any file to fix local type/lint failures, stop and ask the user. - Never edit `.env` or any environment variable files. - Coordinate with other agents before removing their in-progress edits; do not revert or delete work you did not author unless everyone agrees. - Moving, renaming, and restoring files is allowed when done safely. - Never run destructive git operations without explicit written instruction in this conversation: `git reset --hard`, `rm`, `git checkout`/`git restore` to older commits. Treat these as catastrophic; if unsure, stop and ask. In Cursor or Codex Web, use platform tooling as applicable. - Never use `git restore` (or similar revert commands) on files you did not author. - Always run `git status` before committing. - Keep commits atomic and commit only touched files with explicit paths. - For tracked files: `git commit -m "<scoped message>" -- path/to/file1 path/to/file2`. - For new files: `git restore --staged :/ && git add "path/to/file1" "path/to/file2" && git commit -m "<scoped message>" -- path/to/file1 path/to/file2`. - Quote any git path containing brackets or parentheses when staging/committing (for example, `"src/app/[candidate]/**"`). - For rebases, avoid editors: `GIT_EDITOR=:` and `GIT_SEQUENCE_EDITOR=:` (or `--no-edit`). - Never amend commits without explicit written approval in this task thread.
Signals
- Stars
- 1,125
- Forks
- 112
- Open issues
- 2
- Last commit (this folder)
- Feb 26, 2026 (8 months ago)
- Last release
- Sep 7, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- AGPL-3.0
- Repository
- github.com/prompt-security/clawsec
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from prompt-security
- 0.824score
clawsec-suite
prompt-security
ClawSec suite manager with embedded advisory-feed monitoring, cryptographic signature verification, approval-gated malicious-skill response, and guided setup…
SkillAFreshness: A★ 1.1KClaude Code +9 - 0.808score
clawsec-feed
prompt-security
Security advisory feed package for OpenClaw-related threats and vulnerabilities.
SkillAFreshness: A★ 1.1KClaude Code +9 - 0.778score
openclaw-traffic-guardian
prompt-security
OpenClaw runtime traffic monitoring baseline for opt-in HTTP/HTTPS proxy inspection, egress detection, inbound injection detection, and social-account policy…
SkillBFreshness: B★ 1.1KClaude Code +9 - 0.778score
hermes-traffic-guardian
prompt-security
Hermes runtime traffic monitoring baseline for opt-in proxy inspection, egress detection, and attestation-aware traffic posture.
SkillBFreshness: B★ 1.1KClaude Code +9 - 0.778score
openclaw-audit-watchdog
prompt-security
Automated daily security audits for OpenClaw agents with DM delivery and optional email reporting.
SkillBFreshness: B★ 1.1KClaude Code +9 - 0.778score
picoclaw-security-guardian
prompt-security
Picoclaw security posture skill with advisory awareness, configuration drift detection, and supply-chain verification guidance.
SkillBFreshness: B★ 1.1KClaude Code +9
Cite this page
AGENTS.md · prompt-security/clawsec. Agent Mart. https://agentmart.dev/templates/prompt-security-clawsec-agents-md (last updated 2026-10-24)