AgentSkillsCN

check-ownership

在修改pom-config或pom-docs之前,务必先验证文件的所有权。在对共享仓库进行任何写入操作前,必须使用此技能。适用于修改pom-config/、pom-docs/中的文件,或在跨仓库边界操作时使用。

SKILL.md
--- frontmatter
name: check-ownership
description: Verify file ownership before modifying pom-config or pom-docs. MUST be used before any write to shared repositories. Use when modifying files in pom-config/, pom-docs/, or when crossing repository boundaries.

Check Ownership Before Writing

CRITICAL: When This Skill Applies

This skill is MANDATORY before modifying:

  • Any file in pom-config/
  • Any file in pom-docs/
  • Any cross-repository modification

Step 1: Identify Yourself

Determine which AI agent you are by checking your workspace:

WorkspaceYou Are
PomSparkPomSpark
pom-corepom-core
PomAIPomAI
PomothyPomothy
pom-configContext-dependent (check who opened you)
pom-docsContext-dependent (check who opened you)

Step 2: Check Ownership File

Before modifying a file in pom-config or pom-docs:

bash
# For pom-config
cat /Users/tonyeales/Projects/pom-config/OWNERSHIP.yaml

# For pom-docs  
cat /Users/tonyeales/Projects/pom-docs/OWNERSHIP.yaml

Step 3: Verify Your Access

Find your agent in the OWNERSHIP.yaml and check:

  1. Is the path in your can_write list? → Proceed with modification
  2. Is the path in your read_only list? → STOP. Do not modify.
  3. Is the path not listed? → Default to READ-ONLY. Do not modify.

Step 4: If You Don't Have Access

If you need to modify a path you don't own:

  1. File an issue in the owning repo:

    bash
    gh issue create --repo afctony64/<owner-repo> \
      --title "Request: Modify <path>" \
      --body "I need to modify <path> because..."
    
  2. Or ask the human: "I need to modify <path> but it's owned by <owner>. Should I proceed?"

Quick Reference: Common Paths

pom-config

PathOwnerOthers Can Write?
profiles/PomSparkNo
tenant-routing/PomSparkNo
schemas/pom-coreNo
llm_models/pom-coreNo
prompts/PomAIPomothy
ux_configs/PomothyNo
researcher_ai/PomAINo
data_cards/PomAINo
tools/pom-coreNo

pom-docs

PathOwnerOthers Can Write?
docs/infrastructure/PomSparkNo
docs/modes/PomSparkNo
docs/api/pom-coreNo
docs/development/pom-coreNo
docs/architecture/SharedAll agents
docs/workflows/SharedAll agents

Enforcement

code
⛔ VIOLATION: Modifying a path in your read_only list
✅ ALLOWED: Modifying a path in your can_write list
⚠️ ASK HUMAN: If uncertain about access