checking-member-access
它能做什么
本技能读取 PostHog 的访问控制设置,并说明某位团队成员或角色被允许做什么。适合管理 PostHog 项目、需要回答“谁能编辑什么”这类问题的人。
适用场景
- ✓当你需要知道某位团队成员能否编辑仪表盘或功能开关时。
- ✓当某人无法打开仪表盘、笔记本或表格,你想知道原因的时候。
- ✓当你想查看某个角色被限制访问哪些属性或表格的时候。
技能链接
https://github.com/PostHog/posthog/blob/master/products/access_control/skills/checking-member-access/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的分析师角色能否在我们的 PostHog 项目中编辑功能开关?为什么能或不能?”
每周 5 个新技能,1 分钟读完。
工作原理
它使用 PostHog 的访问控制工具,读取某个人或角色的访问级别,并查明该级别的来源。然后,它用通俗的语言解释结果。除非你确认,否则它不会更改任何规则。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Checking member access
Use this skill to answer "what can this person do here?" from the access control tools. The tools return the enforced level and where it comes from. This skill is for reading them correctly.
When to use this skill
- "What can this member do in this project?" / "Can this member edit feature flags?"
- "Who can edit dashboards?" / "Who has no access to experiments?"
- "Why can't this member open this dashboard?" / "Which tables is this role restricted from?"
- "Which properties are hidden from the support role?"
- "What does the
analystrole grant?" / "What is the default access in this project?"
Access rules can also be changed with MCP write tools. Read the current rule first, explain the change, then use the prepare/execute flow and call execute only after the user confirms.
Plan availability
- Free and pay-as-you-go plans have no access control, and the access control tools are not offered to them. If the tools are missing from the catalog, say that the plan does not include access control and suggest upgrading to the Boost plan. Link the plan comparison: https://posthog.com/platform-packages.
- Boost and Scale include the default levels and rules for single members on the project, on tools, on objects and on properties.
- Roles exist on every plan, but role rules are an Enterprise feature: they can be set and are enforced only there, and the three role access tools are offered only there. If the tools are missing, say that role-based access control needs the Enterprise plan, with the same link. On other plans a member's roles never change the enforced level.
- The tools do not say which plan the organization is on. A
source_subjectofroleanywhere in amembers-listresult proves that role rules are enforced. Without that, ask the user whether the organization is on Enterprise before walking roles in step 4 of the workflow.
How access resolves
- Scopes. The project itself, then each tool (
dashboard,insight,feature_flag,notebook,experiment,warehouse_objects, and so on), then single objects inside a tool, then person and event properties. The tool names are the keys ofresourcesin a members-list entry. - Project levels.
noneblocks access to the project and its resources.membercan view and edit the resources their other rules permit.admincan also edit project settings, manage the project's access rules, and delete the project. - Tool and object levels.
nonecannot view.viewercan view but not change.editorcan view and change.managercan also manage the access rules of the tool or object. Order:none<viewer<editor<manager. - Property levels.
nonehides the property.readshows it.read_writealso allows edits. Every property isread_writeunless a rule exists. - Bounds.
minimumandmaximumper tool, ondefaults-get, are the levels a rule can set. A tool withminimumviewercan never be set tonone. - Subjects. A rule belongs to one member, one role, or everyone in the project (the default).
- Organization admins and owners have full access to everything in every project. No rule applies to
them.
organization_levelis a number: 1 member, 8 admin, 15 owner. - Creators have full access to the objects they created, and only those. A member with
vieweron dashboards can still edit the dashboard they created, and cannot edit the others. - Two resolution modes. Organizations resolve rules either most-specific-first (member rule, then
role rules, then default, and object rule before tool rule) or legacy (the highest of the member's own
rule and role rules wins). The tools do not say which mode applies. The server already applied it. So
trust
effective_access_leveland never recompute it from the stored rules. If the user asks why, explain frominherited_access, not from your own precedence.
Available tools
| Tool | Returns |
|---|---|
posthog:access-control-members-list |
常见问题
这需要特定的 PostHog 套餐吗?
免费版和按量付费版不提供访问控制工具。角色规则是 Enterprise 版的功能。
它能更改某人的访问权限吗?
它可以准备更改方案并加以说明,只有在你确认后才会应用。
默认访问权限是什么意思?
它是成员在项目中的起始访问级别,除非某条规则另行覆盖。本技能可以显示它是如何设置的。
详情
作者的原始描述
Explains what a member or a role can do in a PostHog project, using the access control MCP tools. Use when the user asks what someone can see or edit, who can edit dashboards or feature flags, why a member can or cannot open a dashboard, notebook or table, what a role grants, which properties are hidden from someone, or how the project's default access is set. Covers what each level means, how the stored rule, the enforced level and the inherited access relate, what the null values mean, which tool answers which question, and when the answer needs the role tools too.
repo: PostHog/posthog
热度
- GitHub 星标
- 41k
- 排名
- #6824
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
depot-ci
41k帮你的智能体设置并运行 Depot CI 工作流(GitHub Actions 的替代方案),包括迁移现有工作流和读取运行日志。
depot-container-builds
41k帮你的智能体在 Depot 的远程构建器上构建 Docker 镜像,包括多平台镜像、推送到镜像仓库,以及修复构建失败。
depot-github-runners
41k帮你的智能体把 GitHub Actions 任务迁移到 Depot 托管的运行器上,选择运行器规格和标签,并排查运行器设置问题。
editing-agents-md
41k帮你的智能体判断某条规则应写入 AGENTS.md 还是 CLAUDE.md,并以不会让文件臃肿的方式写下,确保规则真正生效。