Skip to content
Back to skills

Libpolicy

ASecurity

libpolicy - Policy engine for access control. PolicyIndex stores and evaluates authorization policies. createPolicyIndex factory loads policies from storage. Planned OPA-WASM integration for complex policy evaluation. Use for access control, authorization decisions, and resource permissions.

  • 4 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 12, 2026
ai-agentsjavascriptjava

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 12, 2026

npx -y skills add aibot88/sec_skill_store --skill libpolicy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Libpolicy?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Libpolicy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aibot88-libpolicy/badge)](https://www.skillsdirectory.com/skills/aibot88-libpolicy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: libpolicy
description: >
  libpolicy - Policy engine for access control. PolicyIndex stores and evaluates
  authorization policies. createPolicyIndex factory loads policies from storage.
  Planned OPA-WASM integration for complex policy evaluation. Use for access
  control, authorization decisions, and resource permissions.
---

# libpolicy Skill

## When to Use

- Implementing access control for resources
- Evaluating authorization policies
- Managing permissions in multi-tenant systems
- Building role-based access control (RBAC)

## Key Concepts

**PolicyIndex**: Stores policies and evaluates access requests against them.

**Policy evaluation**: Determines if an actor can perform an action on a
resource based on defined policies.

## Usage Patterns

### Pattern 1: Evaluate access

```javascript
import { createPolicyIndex } from "@copilot-ld/libpolicy";

const index = await createPolicyIndex(storage);
const allowed = await index.evaluate({
  actor: "user:123",
  resource: "document:456",
  action: "read",
});
```

### Pattern 2: Load policies

```javascript
const index = await createPolicyIndex(storage);
await index.load("policies/"); // Load from directory
```

## Integration

Used by ResourceIndex for access control. Policies stored in data/policies/.

Files in this skill

  • SKILL.md1.3 KB
  • source.json781 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.