graplix

Author ReBAC schemas and evaluate permissions with the Graplix TypeScript toolkit.

92|6|Updated Nov 21, 2024
One-click install
npx skills add https://github.com/daangn/graplix --skill graplix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: graplix
Source: https://github.com/daangn/graplix/tree/main/skill
Command: npx skills add https://github.com/daangn/graplix --skill graplix

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Graplix Skills help you stop guessing and quickly produce correct Relation-Based Access Control code, including schema syntax, engine setup, resolver behavior, and permission evaluation.

Core Features & Use Cases

  • Documentation-first accuracy: teaches you to retrieve the correct installed API docs from local package documentation before writing code.
  • Correct engine workflow: guides you through the core build-and-evaluate flow using buildEngine, resolveType, and resolver-driven checks.
  • Debugging and reliability rules: provides critical guardrails such as not trusting internal knowledge, required resolveType correctness for query.user/query.object, and returning domain entities from relation resolvers.

Quick Start

Tell your coding agent to install the Graplix packages, then use the skill references to write a schema, implement resolvers, buildEngine, and run a permission check via engine.check.

Frequently Asked Questions about graplix

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement ReBAC permissions in TypeScript?

Implement ReBAC permissions in TypeScript by authoring a schema, defining resolvers, and using buildEngine to validate the setup before checking access. This process ensures resolvers return domain entities and resolveType is correctly configured for runtime evaluation.

How does relation-based access control engine evaluation work?

ReBAC engine evaluation works by traversing relation paths through resolver-driven checks to verify access. You build the engine, configure resolveType for query.user and query.object, then run engine.check to evaluate permissions against the defined schema.

What is the correct workflow for building a ReBAC schema and checking permissions?

The correct workflow for building a ReBAC schema involves retrieving installed API docs first, writing the schema, implementing resolvers, and running buildEngine. You then verify access by executing a permission check via engine.check to ensure type safety and resolver accuracy.

Why does my ReBAC resolver return incorrect permission results?

ReBAC resolvers return incorrect permission results when resolveType is misconfigured for query.user or query.object, or when resolvers fail to return domain entities. Always validate schema setup using buildEngine and do not rely on internal knowledge for API correctness.

Can I debug traversed relation paths in a ReBAC system?

You can debug traversed relation paths in a ReBAC system by using engine evaluation and resolver-driven checks to explain the access control decisions. This process requires strict resolveType correctness to accurately trace how permissions are evaluated across relations.

Do I need to install Graplix packages before writing ReBAC schemas?

You need to install Graplix packages before writing ReBAC schemas to access local package documentation and API references. This documentation-first approach ensures schema validation via buildEngine and accurate resolver implementation without relying on internal knowledge.