freetool-openfga-hexagonal-architecture

Explain OpenFGA authorization placement within Freetool's hexagonal architecture layers.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/wonderlydotcom/freetool --skill freetool-openfga-hexagonal-architecture
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: freetool-openfga-hexagonal-architecture
Source: https://github.com/wonderlydotcom/freetool/tree/main/.agents/skills/freetool-openfga-hexagonal-architecture
Command: npx skills add https://github.com/wonderlydotcom/freetool --skill freetool-openfga-hexagonal-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill clarifies and enforces the correct placement of OpenFGA authorization logic within Freetool's hexagonal/onion architecture, preventing security misconfigurations and ensuring maintainable permission systems.

Core Features & Use Cases

  • Architectural Guidance: Clearly defines where authorization logic should and should not reside across API, Application, Infrastructure, and Domain layers.
  • Code Examples: Provides practical F# code snippets demonstrating best practices for OpenFGA integration.
  • Extension & Review: Aids in adding new permissions, modifying OpenFGA tuples, and reviewing authorization designs according to team conventions.
  • Use Case: When adding a new feature that requires role-based access control, use this skill to understand exactly which Freetool modules should be modified to implement the new permission checks and tuple writes.

Quick Start

Use the freetool-openfga-hexagonal-architecture skill to explain where authorization logic belongs in Freetool's architecture with code-backed best practices.

Frequently Asked Questions about freetool-openfga-hexagonal-architecture

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

FAQPage Schema
Where should authorization logic go when integrating OpenFGA into a hexagonal architecture?

OpenFGA authorization logic belongs within specific hexagonal architecture boundaries, strictly separating where permission checks should and should not reside across API, Application, Infrastructure, and Domain layers to prevent security misconfigurations.

How do I add new permissions and modify OpenFGA tuple writes in Freetool?

To add new permissions and modify OpenFGA tuple writes in Freetool, you must apply authorization logic within the correct architectural modules. This involves using specific F# code snippets to implement role-based access control checks and tuple writes according to team conventions.

What is the correct way to review an OpenFGA authorization design in Freetool?

Reviewing an OpenFGA authorization design in Freetool involves checking the placement of permission logic against hexagonal architecture boundaries. You evaluate API, Application, Infrastructure, and Domain layers to ensure correct integration and adherence to team conventions using real code samples.

Can I use Freetool's OpenFGA integration for role-based access control across all architectural layers?

Freetool's OpenFGA integration supports role-based access control, but authorization logic must not be spread evenly. Correct implementation restricts permission checks and tuple writes to designated layers within the hexagonal architecture to maintain security and system maintainability.

Why does placing OpenFGA permission checks in the wrong architectural layer cause security issues?

Placing OpenFGA permission checks in the wrong architectural layer causes security issues by breaking the hexagonal boundary separation. This misconfiguration leads to unauthorized access paths and unmaintainable permission systems, which is why Freetool enforces strict module placement.