AI Coding Agent Skills
When using AI coding assistants (such as Google Antigravity, Gemini CLI, Claude Code, or Cursor), you can install the officialdmint-policy-manager skill.
This equips your AI coding agent with the system prompts, threat models, and authoring guidelines required to create and verify Dmint policies directly in your chat interface.
Installing the Skill (dmint install-skill)
The dmint-cli package bundles the official skill and provides an installation command:
Non-Interactive & Automated Installation
For scripted setups or Docker environments:- Project Workspace (.agents/skills/)
- Global Gemini / Antigravity
- Global Claude Code
- Custom Directory
What the Skill Teaches Your AI Agent
Once installed in your project, your AI assistant automatically adheres to these invariants:- Least Privilege Principles: When drafting policies, the agent defaults unmentioned actions to
DENY. - Wildcard Containment: The agent is instructed never to replace specific resources with broad wildcards (
*) without explicit developer confirmation. - Verification Before Deployment: The agent will run
dmint verify-policyto ensure syntactic and semantic validity before committing policy files. - Separation of Concerns: The agent understands that an LLM can draft policies at development time, but can never participate in runtime authorization.
Security Hardening
Thedmint install-skill command includes strict path sanitization:
- Whitelists skill names against
^[a-zA-Z0-9_-]+$. - Rejects path traversal payloads (
../,..\\, absolute root escapes). - Uses atomic file writes with file descriptor validation to prevent symlink hijacking.