AgentSkillsCN

shared-space

管理家庭或团队协作的共享账本,包括共享账户摘要、支出统计和成员结算。当用户询问共享开支、家庭账本、团队预算或联名账户时使用。关键词:共享账本、家庭账单、团队支出、AA制。

SKILL.md
--- frontmatter
name: shared-space
description: Manages shared ledgers for family or team collaboration, including shared account summaries, spending statistics, and member settlements. Use when user asks about shared expenses, family ledger, team budget, or joint accounts. 关键词:共享账本、家庭账单、团队支出、AA制。
license: Apache-2.0
metadata:
  type: collaboration
  version: "1.1"
allowed-tools: execute read_file ls

Skill: Shared Space

Responsible for handling collaboration logic for family or team shared ledgers.

Use Cases

  • User asks: "What is my family's spending this month?"
  • User requests: "Show me the team expense summary."
  • User asks: "How much did we spend together?"

Available Scripts

ScriptPurposeOutput
app/skills/shared-space/scripts/list_spaces.pyList user's shared spacesSpace list JSON
app/skills/shared-space/scripts/query_space_summary.pyQuery spending summarySummary with monthly stats

list_spaces.py - Get Available Spaces

bash
uv run python app/skills/shared-space/scripts/list_spaces.py

Returns a list of shared spaces the user has access to, with role information.

query_space_summary.py - Space Summary

bash
uv run python app/skills/shared-space/scripts/query_space_summary.py

Query a specific space:

bash
echo '{"space_id": "uuid-string"}' | uv run python app/skills/shared-space/scripts/query_space_summary.py

Returns monthly spending statistics for the space.

Workflows

1. Discovery - List Available Spaces

Triggers: "What shared spaces do I have?", "Show my shared accounts"

Run list_spaces.py and present the available spaces to the user.

2. Summary Query

Triggers: "Family spending this month", "Team expense report"

Run query_space_summary.py and summarize the spending data.

Rules

  • Only used for processing ledger data with "shared" or "multi-user" context.
  • For transfers, guide the user to use the Transfer Expert skill.
  • For recording transactions to a space, use the normal record_transactions tool and the AI should naturally associate it if context indicates a shared space.
  • Localization: Localize all your responses back to the current session language.