estado-compartilhado

Maps shared state writers across flows and resolves writer conflicts into ADRs before ticket slicing.

2|Updated Aug 3, 2026
One-click install
npx skills add https://github.com/GeraldoNeto123/ticket --skill estado-compartilhado-geraldoneto123
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: estado-compartilhado
Source: https://github.com/GeraldoNeto123/ticket/tree/main/skills/estado-compartilhado
Command: npx skills add https://github.com/GeraldoNeto123/ticket --skill estado-compartilhado-geraldoneto123

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? When a feature spec is sliced into tickets by visible behavior, two tickets can adopt opposite assumptions about the same database field, each passing its own review and tests, with the defect surfacing only later at high cost. This Skill adds the orthogonal pass between spec writing and ticket slicing: it maps which flows write to each shared field and resolves writer conflicts up front in an ADR. ## Core Features & Use Cases - Shared-state mapping: Lists the tables and columns a stage touches and names every writer per field, classified by flow (synchronous request, webhook, scheduled scan, migration). - Conflict resolution in ADR: For fields with multiple writers, decides who wins on disagreement and what each writer does when the value is unknown, recording the decision in docs/adr/. - Glossary enforcement: Invokes domain modeling to reconcile vocabulary, ensuring condemned terms are either migrated out of the code or reinstated as the winner. - Use Case: Before slicing a 64-ticket stage, run the gate to discover that seven tickets share writer conflicts on a handful of columns, and capture the resolution in an ADR that every downstream ticket cites. ## Quick Start Run /ticket:estado-compartilhado with the path to your stage spec after /to-spec and before /to-tickets to map shared state writers and record conflicts in an ADR.

Frequently Asked Questions about estado-compartilhado

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent conflicting tickets when slicing a feature spec?▼

Run a shared-state pass between spec writing and ticket slicing that maps each field to its writers per flow. Where multiple writers exist, decide the conflict winner and unknown-value behavior in an ADR that each affected ticket cites.

What is a writer conflict in shared state modeling?▼

A writer conflict occurs when two or more flows, such as a synchronous request and a webhook, write to the same field with different assumptions. Each ticket can pass its own review while the defect only appears later during cross-ticket consistency checks.

When should I skip the shared-state modeling gate?▼

Skip it when the stage is read-only, UI-only, or writes to a single location with one flow. Running the gate when there is nothing to decide adds ceremony without value, so the skill explicitly tells you to proceed directly to ticket slicing.

How do I handle a ticket that adds a new writer to an ADR-governed field?▼

If the new writer obeys the existing ADR rule, add it to the ADR writer list in a docs commit. If it does not fit the rule, record the conflict in the ticket and escalate as a spec design issue rather than implementing over the decision.

Why should code references in tickets avoid file:line anchors?▼

File:line anchors go stale as earlier tickets shift line numbers, so tickets read weeks later point to the wrong code. Use symbol or snippet anchors like a service method name instead, which survive refactoring.