indykite-authzen-evaluation
Skill4 starsChanged 4 months agoApache-2.0View on GitHub
Make a single KBAC authorization decision via the IndyKite AuthZEN REST API (`POST /access/v1/evaluation`) - returns a boolean `decision` for one (subject, action, resource) triple, optionally with per-request `context.input_params`. Use for a single yes/no question - "can ada PROVISION gpu-node-7?", "is this user allowed to delete this document?", "gate this operation on a live check", or debugging why one decision is false. Not for many checks at once (use indykite-authzen-evaluations), not for enumerating which actions/resources/subjects are allowed (use indykite-authzen-search-action / -search-resource / -search-subject), and not for authoring the policy behind the decision (use indykite-authzen-kbac-policies). For the same decision over MCP/JSON-RPC see indykite-mcp-server (`authzen_evaluate`).
In this repository25 other files it gives its agents.
- indykite-agent-gatewaySkill
- indykite-audit-logsSkill
- indykite-authzen-evaluationsSkill
- indykite-authzen-kbac-policiesSkill
- indykite-authzen-list-policiesSkill
- indykite-authzen-search-actionSkill
- indykite-authzen-search-resourceSkill
- indykite-authzen-search-subjectSkill
- indykite-capture-delete-node-propertiesSkill
- indykite-capture-delete-node-property-metadataSkill
- indykite-capture-delete-nodesSkill
- indykite-capture-delete-relationship-propertiesSkill
- indykite-capture-delete-relationshipsSkill
- indykite-capture-upsert-nodesSkill
- indykite-capture-upsert-relationshipsSkill
- indykite-ciq-add-propertySkill
- indykite-ciq-add-relationship-propertySkill
- indykite-ciq-create-nodeSkill
- indykite-ciq-create-node-with-linkSkill
- indykite-ciq-create-relationshipSkill
- indykite-ciq-deleteSkill
- indykite-ciq-readSkill
- indykite-ciq-whoamiSkill
- indykite-data-schemaSkill
- indykite-mcp-serverSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 40
Every partial parameter the matched policy references, ready to pass under context.input_params.
- Very specific: line 42
If a prerequisite is missing, say so - fixing it first is far cheaper than debugging an opaque false decision.
- Distinctive: line 92
If the decision is not what you expected, walk this checklist before changing anything:
- Distinctive: line 105
When this skill has been applied successfully:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
IndyKite AuthZEN - single authorization decision
A KBAC decision asks the AuthZEN endpoint one question - may this subject perform this action on this resource? - and gets back a boolean decision. The decision is rendered by evaluating the project's currently ACTIVE 2.0-kbac policies against the IKG.
This skill covers making that single decision: framing the (subject, action, resource, context) request, sending it, and reading the boolean. It does not author policies - the policy whose subject / actions / resource / condition.cypher the decision is evaluated against is authored with indykite-authzen-kbac-policies.
It is the single-call member of the AuthZEN family:
| Need | Endpoint | Skill |
| One yes/no decision | /access/v1/evaluation | this skill |
| Many decisions at once | /access/v1/evaluations | indykite-authzen-evaluations |
| Actions a subject may perform on a resource | /access/v1/search/action | indykite-authzen-search-action |
| Resources a subject may act on, given an action | /access/v1/search/resource | indykite-authzen-search-resource |
| Subjects allowed an action on a resource | /access/v1/search/subject | indykite-authzen-search-subject |
| Author / manage the KBAC policy | Config API | indykite-authzen-kbac-policies |
When to use
Activate this skill when the user wants to:
- decide whether one subject may perform one action on one resource (e.g. "can
adaPROVISIONthe servergpu-node-7within a budget of 120000?"); - gate an operation in an application on a live authorization check;
- debug why a single decision comes back
trueorfalse.
Do not activate this skill to author or modify the policy behind the decision (indykite-authzen-kbac-policies), to make many decisions in one call (indykite-authzen-evaluations), to enumerate the allowed actions/resources/subjects rather than test one triple (the search skills -search-action / -search-resource / -search-subject), or to return or modify graph data (a decision is yes/no, not a data read or write).
Prerequisites
- One or more ACTIVE KBAC policies whose
subject.type/actions/resource.typecover the triple. If none exist, author them first withindykite-authzen-kbac-policies; a decision with no matching policy is simplyfalse. - An AppAgent with credentials configured for the calling application (Credentials guide).
- The IKG populated with the subject and resource nodes (and any relationships the condition matches). Evaluation reads the graph; it does not seed it.
- Every partial parameter the matched policy references, ready to pass under
context.input_params.
If a prerequisite is missing, say so - fixing it first is far cheaper than debugging an opaque false decision.
Steps
1. Frame the triple and its context
Pin the three parts of the question, plus any per-request values:
| Part | Field | Example |
| subject | subject.type + subject.id | Person / ada |
| action | action.name | PROVISION |
| resource | resource.type + resource.id | Server / gpu-node-7 |
| context | context.input_params | { "max_price": 120000 } |
subject.id / resource.id are the nodes' external_ids; action.name is case-sensitive.
2. Build the request body
{
"subject": { "type": "Person", "id": "ada" },
"resource": { "type": "Server", "id": "gpu-node-7" },
"action": { "name": "PROVISION" },
"context": { "input_params": { "max_price": 120000 } }
}Supply context.input_params only when the matched policy's condition references a $name partial parameter; write each key without the leading $, keeping its type (numbers stay numbers). A location-routed 3.0-kbac policy (USE graph.byName($region) on a composite IKG) takes its logical location the same way - { "region": "east" }, a key of the project's alias_mapping, never a database name; a missing or unknown location is a 422, and a user token for a different identity than subject is a 403 (see references/evaluation-reference.md). A ready body: assets/evaluation-provision-server.json.
3. Send the decision request
POST <API_URL>/access/v1/evaluationThe endpoint authenticates the calling application (its AppAgent credentials - always required) and optionally the user (an access token - applies only in some cases, e.g. a condition references a token claim/scope). Which credential goes in which request header is covered by the Credentials guide.
A runnable shell helper builds the authenticated request: scripts/evaluate.sh — run with --print to preview the curl (host-pinned; tokens redacted).
4. Read the decision
{ "decision": true }true means at least one ACTIVE policy granted the (subject, action, resource) triple with its condition satisfied. false means no policy granted it - either no policy matched the triple, or the matching policy's condition did not hold for the supplied input_params and graph data. A false decision is a normal 200, not an error.
5. Verify
If the decision is not what you expected, walk this checklist before changing anything:
- Policy ACTIVE? A draft/inactive policy is ignored.
- Triple matches?
subject.type,action.name, andresource.typemust match the policy'ssubject.type,actions, andresource.typeexactly (case-sensitive verbs). - Variables named
subject/resource? The condition binds the request's subject/resource only through those reserved names. - IDs are
external_ids?subject.id/resource.idare matched against nodeexternal_id. A wrong id silently matches nothing →false. - Every
$paramsupplied? A missinginput_paramskey the condition needs yields a422(errors: ["missing or wrong input params, '<name>'"]), not a silentfalse. - Data actually in the IKG? Confirm the subject node, resource node, and any matched relationship exist.
Full request/response schema, error table, and a deeper troubleshooting walk-through: references/evaluation-reference.md and references/troubleshooting.md.
Outcome
When this skill has been applied successfully:
POST /access/v1/evaluationreturns{"decision": true}for an allowed(subject, action, resource)triple with validinput_params, and{"decision": false}for a denied one.- A missing required
input_paramskey is surfaced as a422and corrected, not mistaken for a denial. - The same triple can be fanned out through
indykite-authzen-evaluationsor invoked through theindykite-mcp-serverauthzen_evaluatetool with identical decision semantics.
Files in this skill
references/evaluation-reference.md- the/evaluationendpoint: base path, auth, request/response shape, error codes, and pointers to the batch and search sibling skills.references/troubleshooting.md- why a decision is unexpectedlytrue/falseand how to isolate the responsible policy.assets/evaluation-provision-server.json- runnable single-evaluation request body for thePerson PROVISION Serverexample.scripts/evaluate.sh- Bash helper that posts a decision request to/access/v1/evaluation(host-pinned;--printto preview).
Agent-specific notes
This skill uses generic markdown instructions and works across all agents listed in the README. The agent needs to be able to issue HTTP requests (curl, an HTTP client, or the IndyKite Terraform provider). No Claude Code hooks, Cursor @-mentions, or Copilot workspace context are required.
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

