教会事工命令行管理助手
简介
rubysworld 开发的 Planning Center Services 命令行工具,助力教会高效管理服务计划、团队排班与资源调度。
原始描述
CLI tool for managing Planning Center Services data including plans, teams, songs, and scheduled people via the PCO Services API.
通过你的 Agent 添加
安装目录:pco/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
PCO CLI 是 Planning Center Services API 的命令行封装工具,专为教会行政工作设计。核心功能覆盖六大模块:
组织架构管理:查询服务类型(Service Types)、计划(Plans)、文件夹(Folders)、系列(Series)等层级结构
人员与排班:查看团队成员(Teams)、排班人员(Scheduled People),支持按服务计划筛选
内容资源管理:歌曲库(Songs)含编曲查询、媒体文件(Media)、邮件模板(Email Templates)等
数据导出:全局支持 --json/--table/--quiet 三种输出格式,配合 --limit/--offset/--all 实现分页控制
原始 API:pco api 命令提供 HTTP 方法直连(GET/POST/PATCH/DELETE),支持 --data 和 --file 传参
显著优点
- 工作流优化:典型场景如"获取本周日服务计划"仅需 3 条命令串联,大幅简化教会志愿者操作流程
- 输出灵活:JSON 便于程序化处理,表格模式提升人工可读性,quiet 模式适合脚本管道
- 认证安全:独立配置文件隔离凭证,支持状态检查与登出操作
- 别名友好:支持 shell alias 快速调用,降低日常使用门槛
潜在局限
- 生态封闭:仅支持 Planning Center Services,不含 People/Giving 等姊妹产品
- T3 来源风险:个人开发者维护,无企业 SLA 保障,更新节奏不可控
- 无内置加密:配置文件明文存储需依赖系统权限(推荐 600)保护
- 搜索功能有限:依赖 API 端点原生能力,无本地缓存或模糊匹配增强
适合人群
- 教会技术志愿者/行政同工
- 需要批量导出/自动化处理服务计划数据的用户
- 熟悉命令行、具备基本 API 概念的技术使用者
常规风险
- 生态封闭:仅支持 Planning Center Services,不含 People/Giving 等姊妹产品
- T3 来源风险:个人开发者维护,无企业 SLA 保障,更新节奏不可控
- 无内置加密:配置文件明文存储需依赖系统权限(推荐 600)保护
- 搜索功能有限:依赖 API 端点原生能力,无本地缓存或模糊匹配增强
适合人群
- 教会技术志愿者/行政同工
- 需要批量导出/自动化处理服务计划数据的用户
- 熟悉命令行、具备基本 API 概念的技术使用者
常规风险
凭证泄露:~/.config/pco-cli/config.json 若权限配置不当可能导致 API 密钥暴露
供应链风险:个人仓库可能被劫持或弃用,建议锁定 commit 或 fork 自用
数据误操作:pco api 原始接口支持写操作,DELETE/PATCH 需格外谨慎
隐私合规:处理会众个人信息(People 模块)时需符合教会内部数据保护政策
本评估基于文档静态分析,实际运行行为请以代码审计为准
技能正文
PCO CLI - Planning Center Services
CLI for the Planning Center Services API. Used for Shadow's church work (FBC Gulfport).
Repository
https://github.com/rubysworld/pco-cli
Location
/Users/ruby/Projects/pco-cli/pco.ts
Running
tsx /Users/ruby/Projects/pco-cli/pco.ts <command>
/Users/ruby/Projects/pco-cli/pco.ts
tsx /Users/ruby/Projects/pco-cli/pco.ts <command>
Or create an alias:
alias pco="tsx /Users/ruby/Projects/pco-cli/pco.ts"
Authentication
Credentials stored in ~/.config/pco-cli/config.json
# Check auth status
pco auth status
# Setup (interactive)
pco auth setup
# Logout
pco auth logout
Global Options
All list commands support:
--json- Output as JSON (default)--table- Output as table--quiet- Output only IDs--limit <n>- Limit results (default: 25)--offset <n>- Offset results--all- Fetch all pages
Commands
Organization
pco org get # Get org info
Service Types
pco service-types list # List all service types
pco st list # Alias
pco service-types get <id> # Get specific service type
Plans
# List plans (service-type required)
pco plans list --service-type <id>
pco plans list --service-type <id> --filter future
pco plans list --service-type <id> --filter past
# Get specific plan
pco plans get <planId> --service-type <id>
pco plans get <planId> --service-type <id> --include items,team_members
pco service-types list # List all service types
pco st list # Alias
pco service-types get <id> # Get specific service type
# List plans (service-type required)
pco plans list --service-type <id>
pco plans list --service-type <id> --filter future
pco plans list --service-type <id> --filter past
# Get specific plan
pco plans get <planId> --service-type <id>
pco plans get <planId> --service-type <id> --include items,team_members
Filters: future, past, after, before, no_dates
Plan Items
pco items list --service-type <id> --plan <planId>
pco items get <itemId> --service-type <id> --plan <planId>
Scheduled People (Team Members)
pco scheduled list --service-type <id> --plan <planId>
People
pco people list
pco people list --search "John Doe"
pco people get <id>
Teams
pco teams list --service-type <id>
pco teams get <teamId> --service-type <id>
Songs
pco songs list
pco songs list --search "Amazing Grace"
pco songs get <id>
pco songs arrangements <songId>
Media
pco media list
pco media get <id>
Folders
pco folders list
pco folders get <id>
Series
pco series list
pco series get <id>
Tag Groups
pco tag-groups list
pco tag-groups tags <groupId>
Email Templates
pco email-templates list
Attachment Types
pco attachment-types list
Report Templates
pco report-templates list
Raw API
# Direct API access
pco api GET /service_types
pco api POST /endpoint --data '{"key": "value"}'
pco api PATCH /endpoint --file data.json
pco api DELETE /endpoint
Common Workflows
Get This Sunday's Service Plan
# 1. Find service type ID
pco st list --table
# 2. Get future plans
pco plans list --service-type <id> --filter future --limit 1
# 3. Get plan details with includes
pco plans get <planId> --service-type <id> --include items,team_members
Who's Scheduled This Week?
pco scheduled list --service-type <id> --plan <planId> --table
Search for a Song
pco songs list --search "Great Are You Lord"
Notes
- This is for PCO Services only (not People, Giving, etc.)
- API docs: https://developer.planning.center/docs/#/apps/services
- Context: Church work only — don't mix with Buape stuff
pco items list --service-type <id> --plan <planId>
pco items get <itemId> --service-type <id> --plan <planId>
pco scheduled list --service-type <id> --plan <planId>
People
pco people list
pco people list --search "John Doe"
pco people get <id>
Teams
pco teams list --service-type <id>
pco teams get <teamId> --service-type <id>
Songs
pco songs list
pco songs list --search "Amazing Grace"
pco songs get <id>
pco songs arrangements <songId>
Media
pco media list
pco media get <id>
Folders
pco folders list
pco folders get <id>
Series
pco series list
pco series get <id>
Tag Groups
pco tag-groups list
pco tag-groups tags <groupId>
Email Templates
pco email-templates list
Attachment Types
pco attachment-types list
Report Templates
pco report-templates list
Raw API
# Direct API access
pco api GET /service_types
pco api POST /endpoint --data '{"key": "value"}'
pco api PATCH /endpoint --file data.json
pco api DELETE /endpoint
Common Workflows
Get This Sunday's Service Plan
# 1. Find service type ID
pco st list --table
# 2. Get future plans
pco plans list --service-type <id> --filter future --limit 1
# 3. Get plan details with includes
pco plans get <planId> --service-type <id> --include items,team_members
Who's Scheduled This Week?
pco scheduled list --service-type <id> --plan <planId> --table
Search for a Song
pco songs list --search "Great Are You Lord"
Notes
- This is for PCO Services only (not People, Giving, etc.)
- API docs: https://developer.planning.center/docs/#/apps/services
- Context: Church work only — don't mix with Buape stuff
pco people list
pco people list --search "John Doe"
pco people get <id>
pco teams list --service-type <id>
pco teams get <teamId> --service-type <id>
Songs
pco songs list
pco songs list --search "Amazing Grace"
pco songs get <id>
pco songs arrangements <songId>
Media
pco media list
pco media get <id>
Folders
pco folders list
pco folders get <id>
Series
pco series list
pco series get <id>
Tag Groups
pco tag-groups list
pco tag-groups tags <groupId>
Email Templates
pco email-templates list
Attachment Types
pco attachment-types list
Report Templates
pco report-templates list
Raw API
# Direct API access
pco api GET /service_types
pco api POST /endpoint --data '{"key": "value"}'
pco api PATCH /endpoint --file data.json
pco api DELETE /endpoint
Common Workflows
Get This Sunday's Service Plan
# 1. Find service type ID
pco st list --table
# 2. Get future plans
pco plans list --service-type <id> --filter future --limit 1
# 3. Get plan details with includes
pco plans get <planId> --service-type <id> --include items,team_members
Who's Scheduled This Week?
pco scheduled list --service-type <id> --plan <planId> --table
Search for a Song
pco songs list --search "Great Are You Lord"
Notes
- This is for PCO Services only (not People, Giving, etc.)
- API docs: https://developer.planning.center/docs/#/apps/services
- Context: Church work only — don't mix with Buape stuff
pco songs list
pco songs list --search "Amazing Grace"
pco songs get <id>
pco songs arrangements <songId>
pco media list
pco media get <id>
Folders
pco folders list
pco folders get <id>
Series
pco series list
pco series get <id>
Tag Groups
pco tag-groups list
pco tag-groups tags <groupId>
Email Templates
pco email-templates list
Attachment Types
pco attachment-types list
Report Templates
pco report-templates list
Raw API
# Direct API access
pco api GET /service_types
pco api POST /endpoint --data '{"key": "value"}'
pco api PATCH /endpoint --file data.json
pco api DELETE /endpoint
Common Workflows
Get This Sunday's Service Plan
# 1. Find service type ID
pco st list --table
# 2. Get future plans
pco plans list --service-type <id> --filter future --limit 1
# 3. Get plan details with includes
pco plans get <planId> --service-type <id> --include items,team_members
Who's Scheduled This Week?
pco scheduled list --service-type <id> --plan <planId> --table
Search for a Song
pco songs list --search "Great Are You Lord"
Notes
- This is for PCO Services only (not People, Giving, etc.)
- API docs: https://developer.planning.center/docs/#/apps/services
- Context: Church work only — don't mix with Buape stuff
pco folders list
pco folders get <id>
pco series list
pco series get <id>
Tag Groups
pco tag-groups list
pco tag-groups tags <groupId>
Email Templates
pco email-templates list
Attachment Types
pco attachment-types list
Report Templates
pco report-templates list
Raw API
# Direct API access
pco api GET /service_types
pco api POST /endpoint --data '{"key": "value"}'
pco api PATCH /endpoint --file data.json
pco api DELETE /endpoint
Common Workflows
Get This Sunday's Service Plan
# 1. Find service type ID
pco st list --table
# 2. Get future plans
pco plans list --service-type <id> --filter future --limit 1
# 3. Get plan details with includes
pco plans get <planId> --service-type <id> --include items,team_members
Who's Scheduled This Week?
pco scheduled list --service-type <id> --plan <planId> --table
Search for a Song
pco songs list --search "Great Are You Lord"
Notes
- This is for PCO Services only (not People, Giving, etc.)
- API docs: https://developer.planning.center/docs/#/apps/services
- Context: Church work only — don't mix with Buape stuff
pco tag-groups list
pco tag-groups tags <groupId>
pco email-templates list
Attachment Types
pco attachment-types list
Report Templates
pco report-templates list
Raw API
# Direct API access
pco api GET /service_types
pco api POST /endpoint --data '{"key": "value"}'
pco api PATCH /endpoint --file data.json
pco api DELETE /endpoint
Common Workflows
Get This Sunday's Service Plan
# 1. Find service type ID
pco st list --table
# 2. Get future plans
pco plans list --service-type <id> --filter future --limit 1
# 3. Get plan details with includes
pco plans get <planId> --service-type <id> --include items,team_members
Who's Scheduled This Week?
pco scheduled list --service-type <id> --plan <planId> --table
Search for a Song
pco songs list --search "Great Are You Lord"
Notes
- This is for PCO Services only (not People, Giving, etc.)
- API docs: https://developer.planning.center/docs/#/apps/services
- Context: Church work only — don't mix with Buape stuff
pco attachment-types list
pco report-templates list
Raw API
# Direct API access
pco api GET /service_types
pco api POST /endpoint --data '{"key": "value"}'
pco api PATCH /endpoint --file data.json
pco api DELETE /endpoint
Common Workflows
Get This Sunday's Service Plan
# 1. Find service type ID
pco st list --table
# 2. Get future plans
pco plans list --service-type <id> --filter future --limit 1
# 3. Get plan details with includes
pco plans get <planId> --service-type <id> --include items,team_members
Who's Scheduled This Week?
pco scheduled list --service-type <id> --plan <planId> --table
Search for a Song
pco songs list --search "Great Are You Lord"
Notes
- This is for PCO Services only (not People, Giving, etc.)
- API docs: https://developer.planning.center/docs/#/apps/services
- Context: Church work only — don't mix with Buape stuff
# Direct API access
pco api GET /service_types
pco api POST /endpoint --data '{"key": "value"}'
pco api PATCH /endpoint --file data.json
pco api DELETE /endpoint
Get This Sunday's Service Plan
# 1. Find service type ID
pco st list --table
# 2. Get future plans
pco plans list --service-type <id> --filter future --limit 1
# 3. Get plan details with includes
pco plans get <planId> --service-type <id> --include items,team_members
pco scheduled list --service-type <id> --plan <planId> --table
Search for a Song
pco songs list --search "Great Are You Lord"
Notes
- This is for PCO Services only (not People, Giving, etc.)
- API docs: https://developer.planning.center/docs/#/apps/services
- Context: Church work only — don't mix with Buape stuff
pco songs list --search "Great Are You Lord"
- This is for PCO Services only (not People, Giving, etc.)
- API docs: https://developer.planning.center/docs/#/apps/services
- Context: Church work only — don't mix with Buape stuff
Updated: 2026-01-08
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。