Metadata-Version: 2.4
Name: dmint-skills
Version: 1.1.0
Summary: AI agent policy-authoring skills and system prompt guidance for Dmint
License-Expression: Apache-2.0
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Security
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: pytest>=8.0.0; extra == "dev"
Requires-Dist: pytest-cov>=5.0.0; extra == "dev"
Requires-Dist: ruff>=0.4.0; extra == "dev"
Requires-Dist: mypy>=1.10.0; extra == "dev"
Provides-Extra: test
Requires-Dist: pytest>=8.0.0; extra == "test"
Requires-Dist: pytest-cov>=5.0.0; extra == "test"
Dynamic: license-file

# dmint-skills

[![CI](https://github.com/dmint-app/dmint-skills/actions/workflows/ci.yml/badge.svg)](https://github.com/dmint-app/dmint-skills/actions/workflows/ci.yml)
[![PyPI](https://img.shields.io/pypi/v/dmint-skills.svg)](https://pypi.org/project/dmint-skills/)
[![Python 3.10+](https://img.shields.io/pypi/pyversions/dmint-skills.svg)](https://pypi.org/project/dmint-skills/)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)

Official AI agent skills and prompt assets for Dmint security policy management.

`dmint-skills` provides specialized prompt instructions that enable AI coding assistants (Antigravity, Gemini CLI, Claude Code, Cursor) to author least-privilege Dmint security policies through natural conversation.

---

## Installation

```bash
pip install dmint-skills
```

Or install the skill directly into your AI coding assistant workspace using `dmint-cli`:

```bash
dmint install-skill -y
# Installs to .agents/skills/dmint-policy-manager/
```

---

## Quickstart

```python
from dmint_skills import load_policy_manager_skill, get_skill_path

# Load prompt content for your agent framework
skill_text = load_policy_manager_skill()
print(f"Loaded skill ({len(skill_text)} characters)")

# Get filesystem path to bundled asset
skill_path = get_skill_path("dmint-policy-manager")
print(f"Skill path: {skill_path}")
```

---

## Core Guidelines Enforced by the Skill

- **Least Privilege Default**: Undefined operations strictly default to `DENY`.
- **No Hand-Edited JSON**: Directs the agent to author requirements in `access.md` and use `dmint create-policy` instead of writing raw JSON.
- **Mandatory Offline Verification**: Requires running `dmint verify-policy` to validate syntax and schema rules before finalizing.
- **Boundary Preservation**: Explains that LLMs draft policies at development time, but never evaluate authorization at runtime.

---

## Documentation

Full documentation on agent skills and integration guides for Cursor, Claude Code, and Antigravity are available at [docs.dmint.app/guides/agent-skills](https://docs.dmint.app/guides/agent-skills).

---

## Dmint Ecosystem

- [`dmint`](https://github.com/dmint-app/dmint): Core deterministic authorization engine & SQLite store.
- [`dmint-cli`](https://github.com/dmint-app/dmint-cli): Developer CLI for authoring, verifying, and running dashboards.
- [`dmint-mcp`](https://github.com/dmint-app/dmint-mcp): Out-of-process gateway for Model Context Protocol servers.
- [`dmint-dashboard`](https://github.com/dmint-app/dmint-dashboard): Local human approval web UI.
- [`dmint-skills`](https://github.com/dmint-app/dmint-skills): Agent skills for policy authoring assistants.
- [`dmint-examples`](https://github.com/dmint-app/dmint-examples): Reference integrations and attack mitigation testbeds.

---

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and pull request guidelines.

---

## License

Licensed under the [Apache License, Version 2.0](LICENSE).
