alessioroberto82/claude-plugin-circle/shard

Claude Code and agent skill by alessioroberto82/claude-plugin-circle

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Splits large documents (PRD, architecture) into atomic shards for context management. Reduces token usage by 90%. Use when PRD or architecture exceeds 3000 tokens.

Install

npx vskill@latest install alessioroberto82/claude-plugin-circle/shard

SKILL.md

The same SKILL.md was published earlier as alessioroberto82/claude-plugin-circle/shard.

Circle Document Sharding

Implements Circle context sharding: splits large documents into atomic task files that roles can load individually, dramatically reducing token usage.

Soul

Read and apply ../../resources/soul.md before continuing.

Why Sharding Matters

When the Implementer works on TASK-001, it doesn't need to load the entire PRD. Sharding splits documents into focused atomic files so each role invocation loads only what's relevant.

  • Without sharding: The Implementer loads full PRD (~5000+ tokens) every time
  • With sharding: The Implementer loads one shard (~200-400 tokens) per task
  • Result: ~90% token reduction per role invocation

Input

Automatically detect documents to shard in ~/.circle/projects/{project}/output/.

Session-aware discovery: If invoked within an orchestrated session (session ID is known from conversation context), look for documents under sessions/{SESSION_ID}/ first:

SourceSession-scoped pathLegacy path (standalone)
PRDsessions/{SESSION_ID}/refine/PRD-*.mdrefine/PRD-*.md
Architecturesessions/{SESSION_ID}/arch/architecture.mdarch/architecture.md
Requirementssessions/{SESSION_ID}/scope/requirements.mdscope/requirements.md

If no documents found in either location: "No documents to shard. Run circle:refine or circle:scope first."

Process

  1. Derive project paths:

``bash PROJECT_NAME=$(basename "$PWD" | tr '[:upper:]' '[:lower:]') BASE=~/.circle/projects/$PROJECT_NAME ``

If within an orchestrated session (SESSION_ID is known): ``bash mkdir -p $BASE/shards/sessions/$SESSION_ID/{requirements,architecture,tasks} SHARD_BASE=$BASE/shards/sessions/$SESSION_ID ``

If standalone (no session context): ``bash mkdir -p $BASE/shards/{requirements,architecture,tasks} SHARD_BASE=$BASE/shards ``

  1. Analyze documents: Identify independent sections
  • Functional requirements → individual requirement shards
  • Work items / initiatives → individual task shards
  • Architecture decisions → individual ADR shards
  • Non-functional requirements → grouped shard
  1. Create a shard for each section:

Requirements shards → $SHARD_BASE/requirements/ ```markdown # FR-1.1: User Authentication

Type: Requirement Priority: High Dependencies: [ADR-001]

## Description [extracted section content]

## Acceptance Criteria

  • [ ] Criterion 1
  • [ ] Criterion 2

## References

  • [ADR-001] Authentication architecture decision

```

Architecture shards → $SHARD_BASE/architecture/ ```markdown # ADR-001: Authentication Strategy

Type: Architecture Decision Status: Proposed Related Requirements: [FR-1.1, FR-1.2]

## Context [extracted from architecture document]

## Decision [the decision made]

## Consequences [impact on the system] ```

Task shards → $SHARD_BASE/tasks/ ```markdown # TASK-001: Implement User Login

Type: Work Item Priority: Must Have Dependencies: [ADR-001, FR-1.1]

## Description Enable users to log in with credentials to access their dashboard.

## Acceptance Criteria

  • [ ] User can enter email and password
  • [ ] Invalid credentials show error message
  • [ ] Successful login navigates to dashboard

## Technical Notes

  • Uses AuthenticationManager from ADR-001
  • Follow MVVM pattern from architecture

## Related Shards

  • [FR-1.1] User Authentication requirement
  • [ADR-001] Authentication architecture

```

  1. Naming convention: {TYPE}-{ID}-{slug}.md
  • FR-1.1-user-authentication.md
  • ADR-001-auth-strategy.md
  • TASK-001-implement-user-login.md
  1. Update session state:

If within an orchestrated session (SESSION_ID is known): write sharding to the session entry sessions[SESSION_ID].sharding: ``json { "sessions": { "{SESSION_ID}": { "sharding": { "enabled": true, "shards_count": 15, "last_shard_date": "{ISO-8601}", "sources": ["refine/PRD.md", "arch/architecture.md"] } } } } ``

If standalone (no session context): write sharding at root level of session-state.json (backward-compatible): ``json { "sharding": { "enabled": true, "shards_count": 15, "last_shard_date": "{ISO-8601}", "sources": ["refine/PRD.md", "arch/architecture.md"] } } ``

  1. Display summary:

``` Sharding Complete ================= Requirements: 8 shards → ${SHARD_BASE}/requirements/ Architecture: 4 shards → ${SHARD_BASE}/architecture/ Tasks: 6 shards → ${SHARD_BASE}/tasks/

Usage: circle:impl TASK-001 ← Implements only TASK-001 circle:impl TASK-002 ← Implements only TASK-002

Each invocation loads only the relevant shard (~300 tokens instead of ~5000). ```

Post-Sharding Usage

bash
# The Implementer works on only TASK-001
circle:impl TASK-001
# It will read ONLY:
# - ~/.circle/projects/{project}/shards/tasks/TASK-001.md
# - Any dependencies referenced in the shard (loaded on demand)
# - NOT: other tasks, full PRD, future work items

Circle Principles

  • Progressive disclosure: show only what's needed for the current task
  • Token efficiency: every token saved is context preserved for reasoning
  • Atomic units: each shard is self-contained with declared dependencies
  • Traceability: shards reference their source documents and related shards

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/alessioroberto82/claude-plugin-circle/shard/badge)](https://verified-skill.com/skills/alessioroberto82/claude-plugin-circle/shard)

Something wrong with this skill or its page? Tell us.