cognee-permissions
Use when working with cognee's permission system — understanding or changing how users, roles, and tenants get access to datasets, how ACL grants work, where permissions are enforced in add/cognify/search/delete, and how the grant records surface in the memory-provenance view.
Perfil del activo
Investigación y trabajo de conocimiento
Deep research, source comparison, literature review, RAG, knowledge search, and reports.
Escenario
RAG and knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Afinidad con Agent
Claude Code + CLI + Codex
Funciona con Codex, Claude Code, Cursor, CLI o Agents personalizados.
Instalar
Listo
npx skills add topoteretes/cognee --skill cognee-permissions
Mantenimiento
Actual
Actualizado hoy
Riesgo
Requiere revisión
Permission surface may require sandboxing
Calidad de GitHub
30K
92/100 Calidad · 80/100 Confianza
Etiquetas de cobertura
Notas de revisión
Permission surface may require sandboxing · SKILL.md content appears truncated in the provided excerpt; ensure the full document is present in the repository.
Tarjeta de adopción del Agent
Confianza, auditoría y preparación de instalación de un vistazo
Estas puntuaciones combinan metadatos públicos del repositorio, señales de revisión de OpenAgentSkill, actualidad de mantenimiento y preparación de instalación. Sirven para preseleccionar; no sustituyen la revisión humana.
Calidad
ExcelenteHigh-confidence pick with strong adoption and healthy maintenance signals.
Confianza
Solo sandboxCandidata útil con señales de confianza incompletas o mixtas. Manténgala en un espacio aislado hasta que el ciclo de resultados demuestre el ajuste.
Auditoría
Requiere revisiónRevisión legible por máquina de la preparación de instalación, los metadatos de seguridad, el mantenimiento y el riesgo de adopción.
Trust Score de OpenAgentSkill v5
Revisión humana antes de instalar
Ejecute solo en un sandbox y compare alternativas cercanas antes de usarla en trabajo real.
Estrellas
30K estrellas de GitHub
Actividad del repositorio
30K estrellas y 3.0K forks
Mantenimiento
Actualizado hoy
Licencia
Apache-2.0
Instalar
npx skills add topoteretes/cognee --skill cognee-permissions
Seguridad de instalación
Ruta estándar de paquete o instalación en tiempo de ejecución
Superficie de permisos
filesystem or document access, network or browser access
Resultados del Agent
Aún no hay datos de resultados del Agent
Documentación
Usable metadata, review docs
Resumen de riesgo
Revisar antes de producción
- SKILL.md content appears truncated in the provided excerpt; ensure the full document is present in the repository.
- Quality score needs review
- Permission surface needs review: filesystem or document access, network or browser access
- Permission surface: filesystem or document access, network or browser access
Preparación de instalación
Ruta de instalación disponible
- La ruta de instalación está disponible
- La evidencia del repositorio está disponible
- La licencia está declarada
- Aún no hay evidencia de resultados Agent-Proven
Metadatos legibles por Agent
Datos de decisión legibles por máquina para este skill.
Usa este bloque o el JSON integrado para decidir si un Agent debe instalar este skill, elegir una alternativa o pedir revisión humana primero.
Tareas adecuadas
- flujos de Database and SQL
- Equipos de Claude Code
- Equipos que valoran señales de adopción de GitHub
- Understand table relationships
Agents adecuados
Decisión de instalación
- Comando
- npx skills add topoteretes/cognee --skill cognee-permissions
- Política
- Revisar
- Revisión humana
- Sí
Confianza y riesgo
- Confianza
- 72/100
- Auditoría
- 87/100
- Nivel de riesgo
- Requiere revisión
Ciclo de resultados
- Endpoint
- /api/agent/outcome
- ID del evento
- resolve
- Resultados
- 5
Comando de instalación
npx skills add topoteretes/cognee --skill cognee-permissionsNo usar cuando
- Equipos que necesitan un SLA con soporte del proveedor
- production agents without a repository review
- SKILL.md content appears truncated in the provided excerpt; ensure the full document is present in the repository.
- No OpenAgentSkill engagement data yet
- Indicios de permisos de alto riesgo: Secrets or environment access
Skill alternativo
Last30days Skill
53.5K Estrellas
npx skills add mvanhorn/last30days-skill -g
Skill alternativo
Academic Research Skills
38.4K Estrellas
npx skills add Imbad0202/academic-research-skills
Skill alternativo
GPT Researcher
28.0K Estrellas
npx skills add assafelovic/gpt-researcher
Skill alternativo
DeepResearch
19.8K Estrellas
npx skills add Alibaba-NLP/DeepResearch
Seguridad de Agent v2
55/100 · Revisar antes de instalar
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
Medio
Acceso a red
El skill probablemente consulta páginas remotas, API, repositorios o servicios externos.
Medio
Acceso al sistema de archivos
El skill puede leer o escribir archivos de proyecto, documentos, artefactos generados o estado local.
Alto
Secrets or environment access
Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.
Medio
Acceso a base de datos
El skill puede inspeccionar esquemas, consultar bases de datos o trabajar con almacenes persistentes.
- Indicios de permisos de alto riesgo: Secrets or environment access
- Permission surface may require sandboxing
Destinos de instalación
Instala este skill en tu flujo de Agent
Usa el endpoint público para obtener el comando, la lista de seguridad, prompts y enlaces canónicos.
OpenAgentSkill CLI
Resolve policy, run the source installer safely, and report a verified install receipt.
$ npx --yes https://github.com/Leon-Drq/openagentskill/releases/download/cli-v0.2.1/openagentskill-0.2.1.tgz install topoteretes-cognee-permissionsPlan de resolución de Agent
Deja que un Agent valide el ajuste antes de instalar.
La API Resolve devuelve la skill elegida, alternativas, política de seguridad, notas de auditoría, destino de instalación y un prompt listo para usar.
Abrir JSON
/api/agent/resolve?task=Use%20cognee-permissions%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Texto de Resolve
/api/agent/resolve?task=Use%20cognee-permissions%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Traspaso de instalación
/api/skills/topoteretes-cognee-permissions/install
Agent debe revisar
- Task fit and alternatives from Resolve API.
- Audit score, trust score, and safety policy warnings.
- Install target compatibility for Codex, Claude Code, Cursor, or CLI.
Copiar prompt
Task: Use cognee-permissions in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20cognee-permissions%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/topoteretes-cognee-permissions/install
Install command: npx skills add topoteretes/cognee --skill cognee-permissions
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Traspaso de Agent
Da al Agent la ruta de instalación, no otro directorio.
Usa el endpoint público para obtener el comando, la lista de seguridad, prompts y enlaces canónicos.
Traspaso de instalación
/api/skills/topoteretes-cognee-permissions/install
Formato de texto LLM
/api/skills/topoteretes-cognee-permissions/install?format=text
Buscar alternativas
/api/skills/search?q=cognee-permissions&limit=3
Prompt de Agent
Use cognee-permissions for this task. Review https://www.openagentskill.com/api/skills/topoteretes-cognee-permissions/install, then install with: npx skills add topoteretes/cognee --skill cognee-permissionsMetadatos del Registry
Perfil legible por Agent para seleccionar skills automáticamente.
La API Registry expone señales de decisión, confianza, auditoría, casos de uso e instalación sin raspar la interfaz.
Manifest
/api/registry/manifest/topoteretes-cognee-permissions
Texto LLM
/api/registry/manifest/topoteretes-cognee-permissions?format=text
Alias de instalación
/api/registry/install/topoteretes-cognee-permissions
Recomendar
/api/registry/recommend?task=Use%20cognee-permissions%20in%20an%20agent%20workflow&limit=3
Afinidad con Agent
Database and SQL
Etiquetas de uso
Plataformas
Claude Code
Informe de auditoría
Requiere revisión · 87/100
Revisión legible por máquina de la preparación de instalación, los metadatos de seguridad, el mantenimiento y el riesgo de adopción.
Panel de decisión de Agent
Elección principal para Database and SQL
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Rol en la pila
Elección principal
Ajuste principal
Database and SQL
Etiqueta de confianza
Listo para producción
Ruta de instalación
Comando listo
Úsalo cuando
- flujos de Database and SQL
- Equipos de Claude Code
- Equipos que valoran señales de adopción de GitHub
Evidencia
- 30,192 estrellas de GitHub
- recent repository activity
- install command or GitHub repo available
- perfil de calidad 92/100
revisar primero
- SKILL.md content appears truncated in the provided excerpt; ensure the full document is present in the repository.
- No OpenAgentSkill engagement data yet
Ruta de implementación
- 1Instálalo en un Agent de sandbox y ejecuta una tarea de Database and SQL de principio a fin.
- 2Compare output quality, latency, and failure behavior against at least one alternative.
- 3Promote it into production only after reviewing repository permissions, license, and maintenance signals.
Perfil de confianza
Solo sandbox
Candidata útil con señales de confianza incompletas o mixtas. Manténgala en un espacio aislado hasta que el ciclo de resultados demuestre el ajuste.
Adopción en GitHub
Aprobado30K estrellas de GitHub
Actividad de stars/forks
Aprobado30K estrellas y 3.0K forks; la actividad de issues no está disponible en los metadatos actuales
Mantenimiento reciente
AprobadoActualizado hoy
Claridad de licencia
AprobadoApache-2.0
Señales positivas
- Revisión de IA aprobada
- La ruta de instalación está disponible
- La evidencia del repositorio está disponible
- Repositorio mantenido recientemente
- Large GitHub adoption signal
- El comando de instalación no muestra un patrón de alto riesgo evidente
- El ciclo de resultados está listo, pero necesita la primera ejecución real de Agent
Revisar antes de instalar
- SKILL.md content appears truncated in the provided excerpt; ensure the full document is present in the repository.
- Quality score needs review
- Permission surface needs review: filesystem or document access, network or browser access
- Permission surface: filesystem or document access, network or browser access
- Aún no hay informes reales de resultados del Agent
- Se requiere revisión humana antes de una instalación desatendida
Acción recomendada
Ejecute solo en un sandbox y compare alternativas cercanas antes de usarla en trabajo real.
Perfil de calidad
Excelente candidato para flujos de Agent
High-confidence pick with strong adoption and healthy maintenance signals.
Ajuste de flujo
Usa esta skill en estos escenarios
Work with data stores
Database and SQL
I need my agent to inspect database schemas, write SQL, and explain query results.
Search private knowledge
RAG and knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Build and ship code
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Ajuste de flujo
Añadir a un flujo completo
Ingest, retrieve, and cite
RAG knowledge base
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Inspect, patch, and verify code
Coding review agent
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Find, compare, and synthesize
Research report agent
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Lista de alternativas
Compara antes de instalar
Similar skills that may fit this task.
Last30days Skill
Research the last 30 days across Reddit, X, YouTube, Hacker News, Polymarket, GitHub, and the web, then synthesize a grounded brief for an AI agent.
Academic Research Skills
Academic Research Skills for Claude Code: research → write → review → revise → finalize
GPT Researcher
Run autonomous deep research over web and local sources
DeepResearch
Tongyi Deep Research, the Leading Open-source Deep Research Agent
Resumen
--- name: cognee-permissions description: Use when working with cognee's permission system — understanding or changing how users, roles, and tenants get access to datasets, how ACL grants work, where permissions are enforced in add/cognify/search/delete, and how the grant records surface in the memory-provenance view. ---
# The cognee permission system
## The master switch
`ENABLE_BACKEND_ACCESS_CONTROL` decides whether any of this runs:
- `true` (default): multi-tenant mode. Every API call requires auth, every dataset operation is permission-checked, and each user+dataset pair gets isolated graph/vector/relational databases (tracked in the `DatasetDatabase` model, supported backends: Kuzu, LanceDB, SQLite, Postgres). - `false`: single-user mode. Permission checks short-circuit to allowed, there is no per-dataset isolation, and **every user's operations resolve to the same shared databases and datasets**. Authentication is a separate knob: `REQUIRE_AUTHENTICATION`. Unset, it inherits this switch (so turning access control off also turns auth off) — but if `REQUIRE_AUTHENTICATION=true` is set, endpoints still demand a login; authenticated users are identified but *not isolated*, all pointing at the same data. The reverse misconfiguration (`REQUIRE_AUTHENTICATION=false` with access control on) is ignored: auth is forced on with a warning, because multi-tenant isolation is meaningless without identity (`get_authenticated_user.py`).
## The core model: principals, permissions, ACL grants
Everything reduces to one relation — **a grant**: *principal* × *permission* × *dataset*, stored as one `ACL` row (`modules/users/models/ACL.py`).
- **Principal** (`Principal.py`) is polymorphic: `User`, `Role`, and `Tenant` all inherit from it. Any of the three can hold a grant, which is how role-wide and tenant-wide access work — one ACL row covers every member. - **Permission** (`Permission.py`) is one of exactly four names, defined in `permissions/permission_types.py`: `read`, `write`, `delete`, `share`. `share` is the meta-permission: it gates granting/revoking access for others. - **Membership** is separate from grants: `UserRole` and `UserTenant` link users into roles/tenants. A user's effective access is the union of their own grants and the grants of every role/tenant they belong to.
## How grants come into existence
1. **Dataset creation** (`modules/data/methods/create_authorized_dataset.py`): the creating user is granted **all four permissions** on the new dataset. If the user has a `parent_user_id` (sub-users/agent identities), the parent is auto-granted all four as well — parents always see their children's datasets. 2. **Explicit sharing** (`permissions/methods/ authorized_give_permission_on_datasets.py`): the caller must hold `share` on the target datasets, then any principal (user, role, or tenant) can be granted any permission. Revocation mirrors this (`authorized_revoke_permission_on_datasets.py`). 3. **Capabilities — tenant-scoped grants of actions, not data** (landing via PR #4302, currently in review): a new `principal_capabilities` table, keyed on `(principal, tenant, capability)`. Where an ACL row grants access to *a dataset*, a capability grants *an action inside a tenant* — the first one being `manage_users`. The catalog of capability names is code (`CAPABILITY_TYPES` in `permission_types.py`), not a database table, "because the code is what gives each name meaning"; only the assignment of a capability to a principal is data. `tenant_id` is stored on every row because a user can belong to multiple tenants: it pins each grant to the user's membership in one specific tenant, so holding a capability in one tenant never carries over to the same user's other tenants. Resolution (`get_effective_capabilities(user, tenant)`) returns the union of what the tenant grants all of its members, what the user's roles in that tenant grant, and what the user was granted personally — there is no deny in the model, resolution is gated on actual tenant membership, and the tenant owner short-circuits as holding every capability. Grant/revoke endpoints ride the permissions router.
## Where permissions are enforced
The single chokepoint for dataset resolution is `get_authorized_existing_datasets(datasets, permission, user)` — every entrypoint resolves names/IDs through it with the permission it needs:
| Operation | Required permission | Enforcement path | |---|---|---| | `add` / `cognify` / `remember` | `write` | dataset resolution before the pipeline runs | | `search` / `recall` / visualize | `read` | dataset resolution; retrieval is restricted to documents of readable datasets | | `delete` / prune of a dataset | `delete` | `datasets.py` resolves with `"delete"` | | grant/revoke for others | `share` | `authorized_give/revoke_permission_on_datasets` |
Two behaviors worth knowing:
- **Denied reads return empty results, not 403.** A search against a dataset you cannot read yields `[]` — deliberate, to avoid leaking which datasets exist. When debugging "search returns nothing", check grants before checking the graph.
## Roles, tenants, and who may manage them
- **User management** (listing tenant users, assigning/removing roles, adding/removing users) is allowed for the **tenant owner** always, and today for members of roles named in `USER_MANAGEMENT_ALLOWED_ROLE_NAMES` (currently `{"admin"}`, `permissions/permission_types.py`). That name-matching is a known footgun — any customer group that happens to be called "admin" gets user management — and PR #4302 replaces it: the check becomes "does the requester hold the `manage_users` capability in this tenant" (owner always passes), with the role-name match kept only as a deprecated fallback so tenants upgrading from the old check don't lose user management until their `admin` role is granted the capability. - **Role visibility**: members of a role can see the role itself and their co-members; anyone with user-management permission sees all (`tenants/methods/get_users_in_role.py`). Lookups are tenant-scoped — a role id from another tenant cannot be used to read that tenant's members.
## The grant records in memory provenance (the new grant view)
`api/v1/visualize/memory_provenance.py` surfaces the ACL grants as first-class graph data. Each grant becomes an `AclGrantRecord`:
```python {"principal_id": ..., "principal_kind": "user" | "role" | "tenant", "permission": ...} ```
and is rendered into the provenance graph as an edge from the principal node to the dataset, with the permission mapped to a relation name (`_ACL_EDGE_RELATIONS`):
| permission | provenance edge | |---|---| | read | `reads` | | write | `writes` | | delete | `can_delete` | | share | `can_share` |
Grants are rendered (never dropped) even when the principal is unknown, because "an ACL row exists because someone granted it". The view is exposed through the schema router (`get_schema_router.py`): `visualize_memory_provenance` (HTML) and `get_memory_provenance_payload` (JSON) — this is where you *see* the permission state of a memory rather than query it.
## HTTP API surface (`api/v1/permissions/routers/get_permissions_router.py`)
| Endpoint | What it does | |---|---| | `POST /permissions/datasets/{principal_id}` | grant a permission on datasets to a principal (requires `share`) | | `DELETE /permissions/datasets/{principal_id}` | revoke a permission | | `POST /permissions/roles` · `DELETE /permissions/roles/{role_id}` | create/delete a role | | `POST/DELETE /permissions/users/{user_id}/roles` | add/remove a user to/from a role | | `POST /permissions/users/{user_id}/tenants` | add a user to a tenant | | `GET /permissions/tenants/{tenant_id}/roles/{role_id}/users` | members of a role (self-visible to members) | | `GET /permissions/tenants/{tenant_id}/roles/users/{user_id}` | a user's roles | | `GET /permissions/tenants/{tenant_id}/users` | users in a tenant | | `GET /permissions/tenants/me` | the caller's tenants |
## Key files map
- Models: `cognee/modules/users/models/` — `ACL`, `Principal`, `Permission`, `Role`, `Tenant`, `UserRole`, `UserTenant`, `DatasetDatabase` (and `PrincipalCapability` once #4302 lands) - Methods: `cognee/modules/users/permissions/methods/` — grant/revoke, checks, dataset resolution, document filtering - Enforcement chokepoint: `cognee/modules/data/methods/` (`get_authorized_existing_datasets`, `create_authorized_dataset`) - Grant provenance view: `cognee/api/v1/visualize/memory_provenance.py` - HTTP API: `cognee/api/v1/permissions/routers/get_permissions_router.py`
Detalles técnicos
- Versión
- 1.0.0
- Licencia
- Apache-2.0
- Última actualización
- 23 ago 2026
- Publicado
- 23 ago 2026
Resumen de decisión
Elección principal
30,192 estrellas de GitHub
Auditoría
Revisión de instalación
Revisión de instalación y adopción
- Seguridad
- 78/100
- Mantenimiento
- 100/100
- Instalar
- 92/100
Evidencia probada por Agent
Evidencia probada por Agent
Informes de resultados tras resolver, revisar, instalar y una ejecución limitada.
- Tasa de éxito
- —
- Fallo reciente
- —
- Resultados
- 0
- Calidad de salida
- —
- Fallidos
- 0
- No relevante
- 0
- Instalaciones
- 0
- Bloqueado por riesgo
- 0
- Configuración necesaria
- 0
- Producción
- 0
Aún no hay datos de resultados de Agent. La primera ejecución puede informar éxito, configuración necesaria, bloqueos de riesgo, fallo o irrelevancia mediante /api/agent/outcome.
Instalar
Añadir al flujo de Agent
Gratis y de código abierto. Revisa el informe antes de instalar en Agents de producción.
Bucle de crecimiento
Kit para compartir
Borrador basado en un caso para cognee-permissions, listo para publicar manualmente en X.
cognee-permissions: Use when working with cognee's permission system — understanding or changing how users, roles... 30.2K stars https://www.openagentskill.com/skills/topoteretes-cognee-permissions?ref=x
Respuesta opcional con comando de instalación
Listing + install path for cognee-permissions: https://www.openagentskill.com/skills/topoteretes-cognee-permissions?ref=x Install: npx skills add topoteretes/cognee --skill cognee-permissions
Fuente de la ficha
Indexado por Registry
Esta ficha se indexó desde fuentes públicas y no está marcada como oficial hasta que se apruebe una reclamación de mantenedor.
- Creador
- topoteretes
- Fuente
- topoteretes/cognee
- Indexado por
- Índice comunitario de OpenAgentSkill
La atribución enlaza al repositorio público o al perfil del creador. Los creadores pueden reclamar la ficha para actualizar las señales de propiedad.
Reclamar este skillReclamación del propietario
Reclamar esta ficha de skill
Esta ficha Indexado por Registry se atribuye a topoteretes, pero aún no está marcada como oficial. Reclámala para añadir una señal de propietario verificado y hacer más fiables futuras actualizaciones de lanzamiento, instalación y auditoría.
Kit de enlaces para creadores
Añade las insignias de evidencia a tu README
Muestra la ficha canónica, las señales actuales de confianza y auditoría, y evidencia real de Agent-Proven donde los desarrolladores evalúan el repositorio.
[](https://www.openagentskill.com/skills/topoteretes-cognee-permissions)
[](https://www.openagentskill.com/skills/topoteretes-cognee-permissions)
[](https://www.openagentskill.com/skills/topoteretes-cognee-permissions/audit)
[](https://www.openagentskill.com/skills/topoteretes-cognee-permissions)Autor
topoteretes
@topoteretes
Etiquetas
Afinidad con plataforma
Señales de salud
- Estrellas de GitHub
- 30.2K
- Puntuación de calidad
- 55/100
- Último push de GitHub
- 23 ago 2026
- Pistas del framework
- Desconocido
- Vistas de OpenAgentSkill
- 0
- Copias de instalación
- 0
- Clics externos
- 0
Señal de comunidad
Comparte si este skill resulta útil para tu flujo de Agent. Los comentarios agregados mejoran la clasificación con el tiempo.
Confianza y seguridad
Solo sandbox
- Adopción en GitHub30K estrellas de GitHubAprobado
- Actividad de stars/forks30K estrellas y 3.0K forks; la actividad de issues no está disponible en los metadatos actualesAprobado
- Mantenimiento recienteActualizado hoyAprobado
- Claridad de licenciaApache-2.0Aprobado
- Completitud de README/SKILL.mdLos metadatos públicos necesitan más contexto de README/SKILL.mdInfo
- Riesgo de dependencias/runtimenetwork or browser surface, database surfaceInfo
Skills relacionados
Last30days Skill
Research the last 30 days across Reddit, X, YouTube, Hacker News, Polymarket, GitHub, and the web, then synthesize a grounded brief for an AI agent.
53.5K EstrellasAcademic Research Skills
Academic Research Skills for Claude Code: research → write → review → revise → finalize
38.4K EstrellasGPT Researcher
Run autonomous deep research over web and local sources
28.0K EstrellasDeepResearch
Tongyi Deep Research, the Leading Open-source Deep Research Agent
19.8K Estrellas