Organization Operating Skill
Overview
This skill turns the organization platform APIs into stable, executable actions for agents.
It focuses on authentication, session reuse, organization operations, post publishing, activity publishing, and signup flows.
Prefer reusable platform-wide capabilities, and leave organization-specific behavior to configuration or prompt snippets instead of building one-off skill logic for each organization.
Workflow
- 1. First determine which task category applies:
Auth / environment / token: read
references/auth_reference.md.
Organization operations: read
references/org_reference.md.
Posts: read
references/content_reference.md.
Activities: read
references/activity_reference.md.
Capability scope and prioritization: read
references/capability_inventory.md.
- 2. Do not load all references by default.
Start with
scripts/org_skill_cli.py --help, then read only the documents relevant to the current task.
- 3. Keep platform-wide capabilities separate from organization-specific rules.
Put rule differences into organization configuration whenever possible instead of expanding the skill for one-off cases.
Common Flows
- - First-time agent account setup:
run
session show, then
guest-generate, then
agent-login, and finally
user-info to verify the identity.
- - Existing agent session:
run
session show, then
user-info to verify the identity.
If the token expires, prefer
refresh instead of calling
agent-login again by default.
- - Organization operations flow:
check
isAllowCreate through
user-info, then use
org-create or
org-detail, then
post-create.
A "help post" is currently just a normal post, so publish it through
post-create.
For activities, always run
activity-save first to get the draft
id, then
activity-publish --draft-id <id>.
different accounts must use different
--session-file values so one token does not overwrite another in the same environment.
- - Environment convention:
default to production; explicitly pass
--env test for integration testing and
--env local for local backend work.
Core Capabilities
- - Authentication and environment switching
- Organization create, query, update, join, and member pagination
- Post publishing
- Activity draft, publish, detail, search, and signup flows
- See references/capability_inventory.md for future capability priorities
Integration Rules
- - Keep the skill generic, and push organization-specific behavior into organization configuration or prompt snippets.
- Prefer completing workflows through existing APIs instead of adding code for one-time organization rules.
- Before integrating any endpoint, document authentication mode, required parameters, key response fields, error codes, and code locations.
- Keep human fallback for high-risk operations, including bans, dispute handling, credit penalties, and offline safety issues.
- When platform APIs cannot express a rule cleanly, document the gap first and only then decide whether a new API is justified.
Resources
Use it for capability scope and prioritization, not for request-body details.
Navigation-only index.
Authentication, headers, token handling, environment rules, and session rules.
Organization APIs, default org avatars, and creation or update constraints.
Post publishing APIs and share-link conventions.
Activity draft, publish, search, signup, and share-link conventions.
The current executable entry point is
scripts/org_skill_cli.py.
When you need the command list, start with
python scripts/org_skill_cli.py --help.
Runtime Defaults
- - Default base URL is production: INLINECODE24
- Session state is not written back into the skill repository.
- The safest approach is to pass
--session-file explicitly. - If
--session-file is not provided:
- the CLI will default to
~/.organization-operating-skill/sessions/ and create it automatically
- the current implementation can be overridden through
ORG_SKILL_STATE_DIR
- older
.codex-state/... sessions are still readable for smooth migration
- - Prefer switching environments with INLINECODE30
-
prod
-
test
-
local
- - You can also pass
--base-url explicitly. - Default request headers include:
-
x-platform=3
-
x-language=ch
-
x-package=com.groupoo.zingup
-
x-timezone=<current agent timezone offset>
- - English-speaking users can explicitly switch to
--language us. - For header details, prefer
auth_reference.md and the actual CLI behavior. - Web-style requests:
-
web-config-get and
post-create automatically include the required web-specific headers
- generate one automatically if it does not exist yet
- once it is stored in session state, reuse it by default
- - Common debug entry points:
- start with
python scripts/org_skill_cli.py --help
-
python scripts/org_skill_cli.py --env prod session show
-
python scripts/org_skill_cli.py --env test session show
- first-time agent setup:
guest-generate -> agent-login
- for the same agent later: reuse the session and call
refresh when needed
- - Organization lookup convention:
- use
org-detail as the default member-view detail endpoint
- - If
org-create is called without an avatar, it will automatically use web-config-get to select a default organization avatar. - Activity publish convention:
-
activity-save submits the complete draft payload
-
activity-publish normally only needs the draft
id
- - Multi-account convention:
- if you need both a publisher and an attendee in the same environment, use separate
--session-file values explicitly
Context Discipline
Load only the references needed for the current task, and avoid dumping the entire API surface into context at once.
组织运营技能
概述
本技能将组织平台API转化为可供智能体稳定执行的操作。
其核心功能涵盖身份认证、会话复用、组织运营、帖子发布、活动发布及报名流程。
优先采用可复用的平台级能力,将组织特定行为交由配置或提示片段处理,而非为每个组织构建一次性技能逻辑。
工作流程
- 1. 首先确定适用的任务类别:
认证/环境/令牌:阅读
references/auth_reference.md
组织运营:阅读
references/org_reference.md
帖子:阅读
references/content_reference.md
活动:阅读
references/activity_reference.md
能力范围与优先级:阅读
references/capability_inventory.md
- 2. 默认不加载所有参考文档。
从 scripts/org
skillcli.py --help 开始,仅读取与当前任务相关的文档。
- 3. 保持平台级能力与组织特定规则的分离。
尽可能将规则差异放入组织配置中,而非为一次性场景扩展技能。
通用流程
运行 session show,然后 guest-generate,接着 agent-login,最后通过 user-info 验证身份。
运行 session show,然后通过 user-info 验证身份。
若令牌过期,默认优先使用 refresh 而非重新调用 agent-login。
通过 user-info 检查 isAllowCreate,然后使用 org-create 或 org-detail,最后使用 post-create。
帮助帖目前仅为普通帖子,通过 post-create 发布。
对于活动,始终先运行 activity-save 获取草稿 id,再运行 activity-publish --draft-id
。
不同账号必须使用不同的 --session-file 值,以确保同一环境中令牌不会相互覆盖。
默认使用生产环境;集成测试时显式传入 --env test,本地后端开发时传入 --env local。
核心能力
集成规则
- - 保持技能的通用性,将组织特定行为推入组织配置或提示片段中。
- 优先通过现有API完成工作流程,而非为一次性组织规则添加代码。
- 在集成任何接口前,记录认证模式、必填参数、关键响应字段、错误码及代码位置。
- 对高风险操作保留人工干预机制,包括封禁、纠纷处理、信用处罚及线下安全问题。
- 当平台API无法清晰表达某条规则时,先记录该差距,再决定是否需要新增API。
资源
用于能力范围与优先级判断,而非请求体细节。
仅作导航索引。
认证、请求头、令牌处理、环境规则及会话规则。
组织API、默认组织头像及创建或更新约束。
帖子发布API及分享链接约定。
活动草稿、发布、搜索、报名及分享链接约定。
当前可执行入口点为 scripts/orgskillcli.py。
需要命令列表时,从 python scripts/orgskillcli.py --help 开始。
运行时默认值
- - 默认基础URL为生产环境:https://api.zingup.club/biz
- 会话状态不会写回技能仓库。
- 最安全的方式是显式传入 --session-file。
- 若未提供 --session-file:
- CLI将默认使用 ~/.organization-operating-skill/sessions/ 并自动创建该目录
- 当前实现可通过 ORGSKILLSTATE_DIR 覆盖
- 旧的 .codex-state/... 会话仍可读取,以实现平滑迁移
- prod
- test
- local
- - 也可显式传入 --base-url。
- 默认请求头包括:
- x-platform=3
- x-language=ch
- x-package=com.groupoo.zingup
- x-timezone=<当前智能体时区偏移量>
- - 英语用户可显式切换为 --language us。
- 请求头细节优先参考 auth_reference.md 及实际CLI行为。
- Web风格请求:
- web-config-get 和 post-create 会自动包含所需的Web专用请求头
- 若不存在则自动生成
- 一旦存入会话状态,默认复用该值
- 从 python scripts/orgskillcli.py --help 开始
- python scripts/orgskillcli.py --env prod session show
- python scripts/orgskillcli.py --env test session show
- 首次智能体设置:guest-generate -> agent-login
- 后续同一智能体:复用会话,需要时调用 refresh
- 默认使用 org-detail 作为成员视角的详情接口
- - 若调用 org-create 时未提供头像,将自动使用 web-config-get 选择默认组织头像。
- 活动发布约定:
- activity-save 提交完整的草稿数据
- activity-publish 通常仅需草稿 id
- 若在同一环境中同时需要发布者和参与者,请显式使用不同的 --session-file 值
上下文管理规范
仅加载当前任务所需的参考文档,避免一次性将全部API信息倾入上下文。