---
name: component-patterns-e7e7d89f16b4
description: Guidelines for organizing React components in Shadow Master. Use when creating new components, deciding between single-file vs subfolder structure, or understanding the component architecture.
allowed-tools: Read, Grep, Glob
---

# Component Organization Patterns

Guidelines for structuring React components in the Shadow Master codebase.

## Component Directory Overview

```
/components/                    # 130+ components total
├── index.ts                    # Root exports (DiceRoller only)
├── *.tsx                       # 6 standalone utility components
├── action-resolution/          # 3 components - dice pool building
├── auth/                       # 1 component - email verification
├── character/                  # 12 components - character sheet display
├── combat/                     # 4 components - combat tracking UI
├── creation/                   # 83 components - character creation
│   ├── *.tsx                   # 14 top-level cards
│   ├── shared/                 # 14 reusable utilities
│   └── {feature}/              # 17 feature subfolders
├── cyberlimbs/                 # 6 components - augmentation UI
├── sync/                       # 2 components - ruleset sync status
└── ui/                         # 2 components - BaseModal, Tooltip
```

---

## Decision Flowchart

```
Does the component have modals?
├─ Yes → Create subfolder, extract modals
└─ No → Does it have reusable Row/ListItem components?
        ├─ Yes, used elsewhere → Create subfolder
        └─ No → Keep as single file with internal helpers
```

---

## When to Use a Subfolder

Create a subfolder with `index.ts` when:

- Component has one or more **modals** (selection dialogs, forms, etc.)
- Component has **reusable row/list item** components used in multiple places
- Component exceeds ~600 lines with clear separable concerns
- Component has distinct UI pieces that could be tested independently

**Subfolder structure:**

```
/components/{area}/{feature}/
├── FeatureCard.tsx           # Main component
├── FeatureModal.tsx          # Selection/edit modal
├── FeatureRow.tsx            # Optional: if row is complex/reusable
├── constants.ts              # Optional: magic values, options arrays
├── types.ts                  # Optional: feature-specific types
├── utils.ts                  # Optional: feature-specific helpers
├── index.ts                  # Re-exports public API
```

**Index file pattern:**

```typescript
// index.ts - export only public API
export { FeatureCard } from "./FeatureCard";
export { FeatureModal } from "./FeatureModal"; // Only if used externally
```

---

## When to Keep as Single File

Keep as a single file when:

- Component is self-contained with only **internal helper components**
- Internal components are tightly coupled and only make sense within the parent
- Component is under ~400 lines with straightforward structure
- No modals or independently reusable pieces

---

## Component Areas

### Root-Level Components (6 files)

Standalone utility components that don't fit a specific feature area:

| Component              | Purpose                             |
| ---------------------- | ----------------------------------- |
| `DiceRoller.tsx`       | Dice rolling UI with edge rerolls   |
| `AugmentationCard.tsx` | Generic augmentation display        |
| `EssenceDisplay.tsx`   | Essence tracking visualization      |
| `ThemeProvider.tsx`    | Dark/light mode context             |
| `EnvironmentBadge.tsx` | Environment indicator (dev/staging) |
| `NotificationBell.tsx` | Notification center UI              |

---

### `/components/ui/` - Shared UI Primitives

Low-level accessible components used across the app. Built on React Aria.

| Component       | Exports                                              |
| --------------- | ---------------------------------------------------- |
| `BaseModal.tsx` | BaseModal, ModalHeader, ModalBody, ModalFooter       |
| `Tooltip.tsx`   | Tooltip, TooltipTrigger, TooltipContent, InfoTooltip |

**When to add here:** Generic UI primitives with no business logic.

---

### `/components/auth/` - Authentication Components

| Component                     | Purpose                      |
| ----------------------------- | ---------------------------- |
| `EmailVerificationBanner.tsx` | Prompts user to verify email |

---

### `/components/action-resolution/` - Dice Pool Building

Components for building and displaying action resolution dice pools.

| Component               | Purpose                          |
| ----------------------- | -------------------------------- |
| `ActionHistory.tsx`     | List of past action rolls        |
| `ActionPoolBuilder.tsx` | Construct dice pools for actions |
| `EdgeTracker.tsx`       | Edge point tracking and spending |

**Note:** No index.ts - import directly from files.

---

### `/components/character/` - Character Sheet Display

Components for viewing active characters (not creation). No index file - import directly.

| Component                 | Purpose                           |
| ------------------------- | --------------------------------- |
| `AdeptPowerList.tsx`      | Display adept powers and PP       |
| `AutosoftManager.tsx`     | Manage vehicle/drone autosofts    |
| `CyberdeckConfig.tsx`     | Cyberdeck attribute configuration |
| `DroneNetworkManager.tsx` | RCC drone network management      |
| `JumpInControl.tsx`       | Vehicle/drone jump-in interface   |
| `MagicSummary.tsx`        | Magic rating, tradition, drain    |
| `MatrixActions.tsx`       | Matrix action buttons and state   |
| `MatrixSummary.tsx`       | Matrix attributes and programs    |
| `ProgramManager.tsx`      | Running programs management       |
| `RiggingSummary.tsx`      | Rigging stats and VCR mode        |
| `Spellbook.tsx`           | Spell list with casting interface |
| `VehicleActions.tsx`      | Vehicle action buttons            |

---

### `/components/combat/` - Combat Tracking

Components for running combat encounters. Has index.ts and co-located tests.

| Component                 | Purpose                              |
| ------------------------- | ------------------------------------ |
| `CombatTracker.tsx`       | Initiative order and turn management |
| `ActionSelector.tsx`      | Action selection with categories     |
| `ConditionMonitor.tsx`    | Health/damage tracking               |
| `OpposedTestResolver.tsx` | Opposed test dice rolling            |

---

### `/components/cyberlimbs/` - Cyberlimb Management

Components for cyberlimb augmentation display and modification.

| Component                       | Purpose                       |
| ------------------------------- | ----------------------------- |
| `CyberlimbCard.tsx`             | Individual cyberlimb display  |
| `CyberlimbList.tsx`             | List all installed cyberlimbs |
| `CyberlimbDetailPanel.tsx`      | Detailed cyberlimb info panel |
| `CyberlimbInstallModal.tsx`     | Install new cyberlimb         |
| `CyberlimbEnhancementModal.tsx` | Add attribute enhancements    |
| `CyberlimbAccessoryModal.tsx`   | Add accessories to limb       |

---

### `/components/sync/` - Ruleset Synchronization

Components for displaying ruleset sync status and migration.

| Component             | Purpose                              |
| --------------------- | ------------------------------------ |
| `StabilityShield.tsx` | Visual sync status indicator         |
| `MigrationWizard.tsx` | Guide user through ruleset migration |

---

### `/components/creation/` - Character Creation

The largest component area (83 components). Organized by feature with shared utilities.

#### Top-Level Cards (14 files)

Single-file cards without complex modals:

| Card                    | Purpose                       |
| ----------------------- | ----------------------------- |
| `PrioritySelectionCard` | Priority table selection      |
| `AttributesCard`        | Attribute allocation          |
| `SkillsCard`            | Active skills management      |
| `SpellsCard`            | Spell selection for mages     |
| `AdeptPowersCard`       | Adept power selection         |
| `ComplexFormsCard`      | Technomancer complex forms    |
| `AugmentationsCard`     | Cyberware/bioware selection   |
| `VehiclesCard`          | Vehicle/drone acquisition     |
| `WeaponsPanel`          | Weapon purchases              |
| `GearTabsCard`          | Tabbed gear interface         |
| `DerivedStatsCard`      | Calculated stats display      |
| `CharacterInfoCard`     | Name, background, description |
| `EditionSelector`       | Edition selection dropdown    |
| `CreationErrorBoundary` | Error boundary for creation   |

#### Feature Subfolders (17 directories)

| Folder                 | Components | Pattern                                 |
| ---------------------- | ---------- | --------------------------------------- |
| `/armor`               | 4          | Panel + Row + PurchaseModal + ModModal  |
| `/augmentations`       | 4          | 4 specialized modals                    |
| `/contacts`            | 3          | Card + Modal + KarmaConfirm             |
| `/foci`                | 2          | Card + Modal                            |
| `/gear`                | 4          | Panel + Row + 2 Modals                  |
| `/identities`          | 6          | Card + Identity + 3 modal types         |
| `/knowledge-languages` | 5          | Card + 2 Row types + 2 Modals           |
| `/magic-path`          | 2          | Card + Modal + utilities                |
| `/matrix-gear`         | 2          | Card + Modal                            |
| `/metatype`            | 2          | Card + Modal                            |
| `/qualities`           | 3          | Card + SelectionModal + DetailCard      |
| `/shared`              | 14         | Reusable utilities and hooks            |
| `/skills`              | 10         | Panel + ListItem + 8 specialized modals |
| `/spells`              | 2          | ListItem + Modal                        |
| `/vehicles`            | 4          | 4 specialized modals                    |
| `/weapons`             | 4          | Row + 3 Modals                          |

#### Shared Utilities (`/creation/shared/`)

| Component                       | Purpose                         |
| ------------------------------- | ------------------------------- |
| `CreationCard.tsx`              | Standard card wrapper           |
| `BudgetIndicator.tsx`           | Resource budget display         |
| `CardSkeleton.tsx`              | Loading skeleton                |
| `EmptyState.tsx`                | Empty list state                |
| `KarmaConversionModal.tsx`      | Nuyen ↔ Karma conversion        |
| `RatingSelector.tsx`            | 1-6 rating picker               |
| `Stepper.tsx`                   | +/- increment control           |
| `SummaryFooter.tsx`             | Card summary footer             |
| `ValidationBadge.tsx`           | Validation status indicator     |
| `BulkQuantitySelector.tsx`      | Quantity picker for bulk items  |
| `LifestyleModificationSelector` | Lifestyle mod picker            |
| `LifestyleSubscriptionSelector` | Lifestyle subscription picker   |
| `useKarmaConversionPrompt.ts`   | Hook for karma conversion modal |

---

## Adding Components by Area

### Adding a Creation Card

1. **Determine structure** using the decision flowchart
2. **Create in** `/components/creation/` or `/components/creation/{feature}/`
3. **Use `CreationCard` wrapper** from `/components/creation/shared/`
4. **Add to `SheetCreationLayout.tsx`** in appropriate column
5. **Update `CreationState` type** in `/lib/types/creation.ts` if needed
6. **Export from `/components/creation/index.ts`**

### Adding a Combat Component

1. Create in `/components/combat/`
2. Export from `/components/combat/index.ts`
3. Add co-located test in `/components/combat/__tests__/`

### Adding a Character Sheet Component

1. Create in `/components/character/`
2. Import directly from file (no index.ts)
3. Add to relevant page in `/app/characters/[id]/`

### Adding a Cyberlimb Component

1. Create in `/components/cyberlimbs/`
2. Export from `/components/cyberlimbs/index.ts`
3. Export types if needed for external use

### Adding a UI Primitive

1. Create in `/components/ui/`
2. Build on React Aria for accessibility
3. Export from `/components/ui/index.ts`
4. No business logic - pure presentation

---

## Adding a New API Endpoint

1. Create `/app/api/{path}/route.ts`
2. Export HTTP method handlers (GET, POST, PUT, DELETE)
3. Follow authentication pattern (getSession → validate user)
4. Call storage layer functions
5. Return JSON responses

---

## Adding a New Ruleset Module

1. Define module type in `/lib/types/edition.ts`
2. Add module to book payload in `/data/editions/{editionCode}/`
3. Update merge logic in `/lib/rules/merge.ts` if special handling needed
4. Create hook in `RulesetContext.tsx` for easy access

---

## Key Reference Files

- `components/ui/BaseModal.tsx` - Accessible modal foundation
- `components/creation/shared/CreationCard.tsx` - Card wrapper pattern
- `components/creation/SkillsCard.tsx` - Modal-based editing example
- `components/combat/CombatTracker.tsx` - Combat component with tests
- `components/cyberlimbs/index.ts` - Feature folder export pattern
- `app/characters/create/sheet/components/SheetCreationLayout.tsx` - Three-column layout

---

## Component Diagram Generation

Mermaid diagrams are auto-generated from the component structure.

### Commands

```bash
# Preview all areas to stdout
pnpm generate-diagrams

# Generate specific area
pnpm generate-diagrams --area=combat
pnpm generate-diagrams --area=creation

# Update documentation files
pnpm generate-diagrams --output=files

# Verbose mode with component counts
pnpm generate-diagrams --verbose
```

### Output Locations

| Mode              | Location                                   |
| ----------------- | ------------------------------------------ |
| `--output=stdout` | Prints to terminal (default)               |
| `--output=files`  | Writes to `/docs/architecture/components/` |

### Diagram Color Key

| Color  | Hex       | Component Type | Naming Pattern                            |
| ------ | --------- | -------------- | ----------------------------------------- |
| Blue   | `#3b82f6` | Container      | `*Card.tsx`, `*Panel.tsx`, `*Tracker.tsx` |
| Purple | `#8b5cf6` | Modal          | `*Modal.tsx`                              |
| Green  | `#22c55e` | Row            | `*Row.tsx`, `*ListItem.tsx`               |
| Orange | `#f59e0b` | Hook           | `use*.ts`, `*Context.tsx`                 |
| Gray   | `#6b7280` | Shared         | Everything else                           |

### When to Regenerate

Run `pnpm generate-diagrams --output=files` after:

- Adding a new component folder
- Adding/removing modals or cards
- Reorganizing component structure
- Before major documentation updates

### Validation

```bash
# Validate creation docs structure (doesn't regenerate)
pnpm validate-creation-docs --verbose
```

---

## Documentation Structure

### Hand-Written (detailed)

`/docs/architecture/creation-components/` - Detailed creation component docs with:

- Component descriptions
- Props documentation
- Usage patterns
- Context dependencies

### Auto-Generated (overview)

`/docs/architecture/components/` - Generated hierarchy diagrams:

- Mermaid component trees
- Summary tables
- Color-coded by type

---

## Index File Conventions

| Area                 | Has index.ts? | Reason                           |
| -------------------- | ------------- | -------------------------------- |
| `/ui`                | Yes           | Stable public API                |
| `/combat`            | Yes           | Cohesive feature set             |
| `/cyberlimbs`        | Yes           | Cohesive feature set             |
| `/sync`              | Yes           | Cohesive feature set             |
| `/creation`          | Yes           | Organized by phases              |
| `/character`         | No            | Loosely coupled, import directly |
| `/action-resolution` | No            | Loosely coupled, import directly |
| `/auth`              | No            | Single component                 |


---
Source attribution: Jasrags
Original project: https://github.com/Jasrags/ShadowMaster/blob/9657a180de9698f24190d80259acd983b07ce169/.claude/skills/component-patterns/SKILL.md
License: GPL-3.0-only
License information: https://www.gnu.org/licenses/gpl-3.0.html
Original upstream instructions; downloaded from Dave AI.

## Upstream license notice

                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2024 ShadowMaster RPG System

 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <https://www.gnu.org/licenses/>.

                    GNU GENERAL PUBLIC LICENSE
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License.  The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language.  (Hereinafter, translation is included without limitation in
the term "modification".)  Each licensee is addressed as "you".

Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope.  The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.

  1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.

You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.

  2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:

    a) You must cause the modified files to carry prominent notices
    stating that you changed the files and the date of any change.

    b) You must cause any work that you distribute or publish, that in
    whole or in part contains or is derived from the Program or any
    part thereof, to be licensed as a whole at no charge to all third
    parties under the terms of this License.

    c) If the modified program normally reads commands interactively
    when run, you must cause it, when started running for such
    interactive use in the most ordinary way, to print or display an
    announcement including an appropriate copyright notice and a
    notice that there is no warranty (or else, saying that you provide
    a warranty) and that users may redistribute the program under
    these conditions, and telling the user how to view a copy of this
    License.  (Exception: if the Program itself is interactive but
    does not normally print such an announcement, your work based on
    the Program is not required to print an announcement.)

These requirements apply to the modified work as a whole.  If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works.  But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.

Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.

In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.

  3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:

    a) Accompany it with the complete corresponding machine-readable
    source code, which must be distributed under the terms of Sections
    1 and 2 above on a medium customarily used for software interchange; or,

    b) Accompany it with a written offer, valid for at least three
    years, to give any third party, for a charge no more than your
    cost of physically performing source distribution, a complete
    machine-readable copy of the corresponding source code, to be
    distributed under the terms of Sections 1 and 2 above on a medium
    customarily used for software interchange; or,

    c) Accompany it with the information you received as to the offer
    to distribute corresponding source code.  (This alternative is
    allowed only for noncommercial distribution and only if you
    received the program in object code or executable form with such
    an offer, in accord with Subsection b above.)

The source code for a work means the preferred form of the work for
making modifications to it.  For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable.  However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.

If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.

  4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License.  Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.

  5. You are not required to accept this License, since you have not
signed it.  However, nothing else grants you permission to modify or
distribute the Program or its derivative works.  These actions are
prohibited by law if you do not accept this License.  Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.

  6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions.  You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.

  7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all.  For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.

If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.

It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices.  Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.

This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.

  8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded.  In such case, this License incorporates
the limitation as if written in the body of this License.

  9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

Each version is given a distinguishing version number.  If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation.  If the Program does not specify a version number of
this License, you may choose any version ever published by the Free
Software Foundation.

  10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission.  For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this.  Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.

                            NO WARRANTY

  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.

  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    <program>  Copyright (C) <year>  <name of author>
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for details click here.

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more details on this, and other aspects of the GPL, click here.




# Dave AI resource metadata

Creator / publisher: Jasrags
Original project: https://github.com/Jasrags/ShadowMaster/blob/9657a180de9698f24190d80259acd983b07ce169/.claude/skills/component-patterns/SKILL.md
Attribution basis: Source repository record

Fields of work: Design, Development & Engineering, Product Management
Roles: Frontend Developer, Product Manager, UX Designer
Specialties: Frontend
Tools: Shadow Master
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 047a35d32a15b243eac1b68e3f95263ef29ce13b1d9159b1ff905fe4b19ba090
