Skip to content
manage-references logo

Manage References Skill

manage-references

Manage references.toon files with field-level access and list management

SKILL.md

Full skill instructions

Manage References Skill

Manage references.toon files with field-level access and list management. Tracks files, branches, and external references for a plan.

What This Skill Provides

  • Read/​write references.toon
  • Field-level get/​set operations
  • List management (add/​remove items)
  • File tracking for modified files

When to Activate This Skill

Activate this skill when:

  • Setting branch or issue references
  • Adding modified files to tracking
  • Managing external documentation references

Storage Location

References are stored in the plan directory:

.plan/​plans/​{plan_id}/​references.toon

File Format

TOON format with scalar and list fields:

# Plan References

branch: feature/​my-feature
issue_url: https://github.com/​org/​repo/​issues/​123
build_system: maven

modified_files[3]:
- src/​main/​java/​Foo.java
- src/​main/​java/​Bar.java
- src/​test/​java/​FooTest.java

external_docs[1]{title,url}:
JWT Guide,https://jwt.io/​introduction

Schema Fields

FieldTypeDescription
branchstringGit branch name
base_branchstringBase branch for PR (e.g., main)
issue_urlstringGitHub issue URL
build_systemstringBuild system (maven, gradle, npm, none)
modified_fileslistFiles modified during implementation
config_fileslistConfiguration files changed
test_fileslistTest files created/​modified
domainslistPlan domains (e.g., java, documentation)
external_docstableExternal documentation references
affected_fileslistFiles affected during outline phase (for execution tracking)

Operations

Script: pm-workflow:manage-references:manage-references

create

Create references.toon with basic fields.

python3 .plan/​execute-script.py pm-workflow:manage-references:manage-references create \
  --plan-id {plan_id} \
  --branch {branch_name} \
  [--issue-url {url}] \
  [--build-system {maven|gradle|npm}] \
  [--domains {java,documentation}]

Parameters:

  • --plan-id (required): Plan identifier (kebab-case)
  • --branch (required): Git branch name
  • --issue-url: GitHub issue URL
  • --build-system: Build system (maven, gradle, npm)
  • --domains: Comma-separated domain list (e.g., java,documentation)

Output (TOON):

status: success
plan_id: my-feature
file: references.toon
created: true
fields:
  - branch
  - base_branch
  - modified_files
  - config_files
  - test_files

Note: Basic fields are created during plan-init. Additional reference fields are added as needed during execution.

read

Read entire references.toon content.

python3 .plan/​execute-script.py pm-workflow:manage-references:manage-references read \
  --plan-id {plan_id}

Output (TOON):

status: success
plan_id: my-feature

references:
  branch: feature/​my-feature
  issue_url: https://github.com/​org/​repo/​issues/​123
  modified_files: 3 items

get

Get a specific field value.

python3 .plan/​execute-script.py pm-workflow:manage-references:manage-references get \
  --plan-id {plan_id} \
  --field branch

Output (TOON):

status: success
plan_id: my-feature
field: branch
value: feature/​my-feature

set

Set a specific field value.

python3 .plan/​execute-script.py pm-workflow:manage-references:manage-references set \
  --plan-id {plan_id} \
  --field branch \
  --value feature/​new-branch

Output (TOON):

status: success
plan_id: my-feature
field: branch
value: feature/​new-branch
previous: feature/​my-feature

add-file

Add a file to modified_files list.

python3 .plan/​execute-script.py pm-workflow:manage-references:manage-references add-file \
  --plan-id {plan_id} \
  --file src/​main/​java/​NewClass.java

Output (TOON):

status: success
plan_id: my-feature
section: modified_files
added: src/​main/​java/​NewClass.java
total: 4

remove-file

Remove a file from modified_files list.

python3 .plan/​execute-script.py pm-workflow:manage-references:manage-references remove-file \
  --plan-id {plan_id} \
  --file src/​main/​java/​OldClass.java

Output (TOON):

status: success
plan_id: my-feature
section: modified_files
removed: src/​main/​java/​OldClass.java
total: 2

add-list

Add multiple values to a list field.

python3 .plan/​execute-script.py pm-workflow:manage-references:manage-references add-list \
  --plan-id {plan_id} \
  --field affected_files \
  --values "path/​to/​file1.md,path/​to/​file2.md,path/​to/​file3.md"

Parameters:

  • --plan-id (required): Plan identifier
  • --field (required): List field name (e.g., affected_files, modified_files)
  • --values (required): Comma-separated values to add

Output (TOON):

status: success
plan_id: my-feature
field: affected_files
added_count: 3
total: 3

Notes:

  • Creates the field as an empty list if it doesn't exist
  • Skips values that already exist in the list (no duplicates)
  • Returns error if the field exists but is not a list

set-list

Set a list field to new values, replacing any existing content.

python3 .plan/​execute-script.py pm-workflow:manage-references:manage-references set-list \
  --plan-id {plan_id} \
  --field affected_files \
  --values "path/​to/​file1.md,path/​to/​file2.md"

Parameters:

  • --plan-id (required): Plan identifier
  • --field (required): List field name (e.g., affected_files, modified_files)
  • --values (required): Comma-separated values

Output (TOON):

status: success
plan_id: my-feature
field: affected_files
previous_count: 5
count: 2

Notes:

  • Replaces the entire list (does not append like add-list)
  • Empty --values "" clears the list
  • Returns previous_count showing how many items were replaced

When to use set-list vs add-list:

  • Use set-list when you have the complete list of values to store
  • Use add-list when appending to an existing list without knowing its contents

get-context

Get all references context in one call. Useful for getting comprehensive plan context.

python3 .plan/​execute-script.py pm-workflow:manage-references:manage-references get-context \
  --plan-id {plan_id} \
  [--include-files]

Parameters:

  • --plan-id (required): Plan identifier
  • --include-files: Include full file lists in output (default: only counts)

Output (TOON):

status: success
plan_id: my-feature
branch: feature/​my-feature
base_branch: main
modified_files_count: 3
config_files_count: 1
test_files_count: 2
issue_url: https://github.com/​org/​repo/​issues/​123
build_system: maven

With --include-files:

status: success
plan_id: my-feature
branch: feature/​my-feature
base_branch: main
modified_files_count: 3
config_files_count: 1
test_files_count: 2
modified_files:
  - src/​main/​java/​Foo.java
  - src/​main/​java/​Bar.java
  - src/​main/​java/​Baz.java
config_files:
  - pom.xml
test_files:
  - src/​test/​java/​FooTest.java
  - src/​test/​java/​BarTest.java

Scripts

Script: pm-workflow:manage-references:manage-references

CommandParametersDescription
create--plan-id --branch [--issue-url] [--build-system] [--domains]Create references.toon
read--plan-idRead entire references
get--plan-id --fieldGet specific field value
set--plan-id --field --valueSet specific field value
add-file--plan-id --fileAdd file to modified_files
remove-file--plan-id --fileRemove file from modified_files
add-list--plan-id --field --valuesAdd multiple values to a list field
set-list--plan-id --field --valuesSet a list field (replaces existing)
get-context--plan-id [--include-files]Get all references context

Error Handling

status: error
plan_id: my-feature
error: file_not_found
message: references.toon not found

Integration Points

With plan-execute

Execution phase adds modified files as work progresses.

With plan-finalize

Finalization reads modified files for commit/​PR creation.

More Productivity & Planning skills

brainstorming logo
Productivity & Planning

brainstorming

Structured design dialogue that validates ideas before implementation begins.

295.4K 385.7K
View
ui-ux-pro-max logo
Productivity & Planning

ui-ux-pro-max

Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.

133.1K 383.9K
View
writing-plans logo
Productivity & Planning

writing-plans

Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.

295.4K 268K
View
using-superpowers logo
Productivity & Planning

using-superpowers

Introduction to the obra skills system with mandatory skill invocation rules and best practices.

295.4K 259.8K
View
executing-plans logo
Productivity & Planning

executing-plans

Execute a written implementation plan with critical review and task checkpoints.

295.4K 229.1K
View
dispatching-parallel-agents logo
Productivity & Planning

dispatching-parallel-agents

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View
using-git-worktrees logo
Productivity & Planning

using-git-worktrees

Isolated git worktrees with smart directory selection and safety verification.

295.4K 205.2K
View
webapp-testing logo
Productivity & Planning

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

179.7K 170.6K
View
content-strategy logo
Productivity & Planning

content-strategy

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View
repo-intake-and-plan logo
Productivity & Planning

repo-intake-and-plan

README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.

497 139.6K
View
marketing-ideas logo
Productivity & Planning

marketing-ideas

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
site-architecture logo
Productivity & Planning

site-architecture

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View

Productivity AI tools

Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View
SaveDay logo
Productivity

SaveDay

Capture, organize, and utilize your knowledge effortlessly.

Free
View
Any Summary logo
Productivity

Any Summary

Instant Summaries of Audio & Video Interviews with AnySummary

Freemium
View
M
Productivity

Map This

Transform PDFs into engaging mind maps.

Freemium
View
ChatPDF logo
Productivity

ChatPDF

Chat with any PDF instantly

Free
View
I
Productivity

intellisay

Create an optimal daily plan using your voice

Paid
View
A
Productivity

Aurora AI

A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.

Paid
View
AskYourPDF logo
Productivity

AskYourPDF

AskYourPDF Pricing Plans: Tailored to Your Needs

Free
View