{"id":43869954,"url":"https://github.com/openfga/agent-skills","last_synced_at":"2026-02-06T14:25:17.304Z","repository":{"id":334812218,"uuid":"1136455714","full_name":"openfga/agent-skills","owner":"openfga","description":"OpenFGA skills for AI agents","archived":false,"fork":false,"pushed_at":"2026-01-27T00:49:28.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-27T12:06:34.382Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openfga.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-17T18:10:32.000Z","updated_at":"2026-01-27T00:42:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/openfga/agent-skills","commit_stats":null,"previous_names":["openfga/agent-skills"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/openfga/agent-skills","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfga%2Fagent-skills","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfga%2Fagent-skills/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfga%2Fagent-skills/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfga%2Fagent-skills/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openfga","download_url":"https://codeload.github.com/openfga/agent-skills/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfga%2Fagent-skills/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29164854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T12:44:37.655Z","status":"ssl_error","status_checked_at":"2026-02-06T12:44:13.991Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-06T14:25:16.516Z","updated_at":"2026-02-06T14:25:17.282Z","avatar_url":"https://github.com/openfga.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenFGA Best Practices Skill\n\nA comprehensive skill for AI agents to author, review, and refactor OpenFGA authorization models following best practices.\n\n## Installation\n\n```bash\nnpx skills add openfga/agent-skills\n```\n\n## What's Included\n\nThis skill provides guidelines and patterns for:\n\n- **Authorization Model Design** - Types, relations, and permission structures\n- **Relationship Patterns** - Direct, concentric, indirect, and conditional relationships\n- **Testing \u0026 Validation** - `.fga.yaml` test files and CLI usage\n- **Custom Roles** - User-defined roles and role assignments\n- **SDK Integration** - Code examples for JavaScript, Go, Python, Java, and .NET\n\n## Rule Categories\n\n| Category | Impact | Description |\n|----------|--------|-------------|\n| Core Concepts | CRITICAL | Types, relations, tuples, schema basics |\n| Relationship Definitions | CRITICAL | Direct, concentric, indirect patterns |\n| Testing \u0026 Validation | HIGH | `.fga.yaml` structure, assertions, CLI |\n| Model Design | HIGH | Permissions, hierarchies, naming |\n| Custom Roles | MEDIUM | User-defined and resource-specific roles |\n| Optimization | MEDIUM | Simplification, tuple minimization |\n| SDK Integration | HIGH | Language-specific client usage |\n\n## When This Skill Activates\n\nThe skill triggers when working with:\n\n- `.fga` model files\n- `.fga.yaml` test files\n- OpenFGA relationship definitions\n- Permission structures and authorization logic\n- OpenFGA SDK code in any supported language\n\n## SDK Support\n\nIncludes complete examples for:\n\n- **JavaScript/TypeScript** - `@openfga/sdk`\n- **Go** - `github.com/openfga/go-sdk`\n- **Python** - `openfga_sdk` (async and sync)\n- **Java** - `dev.openfga:openfga-sdk`\n- **.NET** - `OpenFga.Sdk`\n\n## File Structure\n\n```\nopenfga/\n├── SKILL.md          # Quick reference and metadata\n├── AGENTS.md         # Comprehensive guide for agents\n├── README.md         # This file\n└── rules/\n    ├── core-*.md     # Core concept rules\n    ├── relation-*.md # Relationship pattern rules\n    ├── test-*.md     # Testing rules\n    ├── design-*.md   # Design pattern rules\n    ├── roles-*.md    # Custom role rules\n    ├── optimize-*.md # Optimization rules\n    ├── workflow-*.md # Workflow rules\n    └── sdk-*.md      # SDK-specific rules\n```\n\n## Rebuilding AGENTS.md\n\nThe `AGENTS.md` file is generated from the individual rule files in `rules/`. To regenerate it after making changes:\n\n```bash\nnode scripts/build-agents-md.js\n```\n\nThe script reads:\n- Section order and rule order from `skills/openfga/SKILL.md`\n- Individual rule content from `skills/openfga/rules/*.md`\n\nWhen adding new rules:\n1. Create the rule file in `rules/` with the appropriate prefix (e.g., `core-`, `relation-`, `test-`)\n2. Add the rule to the corresponding section in `SKILL.md` under Quick Reference\n3. Run the build script to regenerate `AGENTS.md`\n\n## Example Usage\n\nOnce installed, AI agents will automatically apply these best practices when:\n\n1. Creating new OpenFGA models\n2. Reviewing existing authorization code\n3. Writing relationship tuples\n4. Implementing permission checks in application code\n5. Setting up model tests\n\n## Resources\n\n- [OpenFGA Documentation](https://openfga.dev/docs)\n- [OpenFGA GitHub](https://github.com/openfga)\n- [OpenFGA Playground](https://play.fga.dev)\n\n## License\n\nAPACHE 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfga%2Fagent-skills","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenfga%2Fagent-skills","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfga%2Fagent-skills/lists"}