Agent skill · Audited from source
Component Flattening Analysis
skill · tech-leads-club/agent-skillsNOASSERTION licenceAudited 7 Oct 2026 · source 069343ba7895
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 069343ba7895 and found no filesystem, network or shell access and no hard-coded secrets. What it does: Detects misplaced classes and fixes component hierarchy problems — finds code that should belong inside a component but sits at the root level. Use when asking "clean up component structure", "find orphaned classes",…
Cite
Cite this page
ModelsAtlas. “Component Flattening Analysis (tech-leads-club/agent-skills)”. Retrieved 7 Oct 2026. https://modelsatlas.com/skills/tech-leads-club/component-flattening-analysis
Trust audit
Audit 0.4.1 · source read 7 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 1 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (1)
LOWInventory / provenanceinv.symlink · CLAUDE.md
CLAUDE.md
- Why
- link not followed
- Fix
- —
Audit 0.4.1 · source sha 069343ba7895 · 7 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publishertech-leads-club GitHub organizationOwner of the repository this skill is read from
- Source foldertech-leads-club/agent-skills/packages/skills-catalog/skills/(architecture)/component-flattening-analysisThe exact folder we audited
- LicenceNOASSERTIONAs the repository states it
- Commit pinned for this verdict069343ba7895A new audit runs when the source changes
- Repository statusNot archivedLast push 16 days ago
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Detects misplaced classes and fixes component hierarchy problems — finds code that should belong inside a component but sits at the root level. Use when asking "clean up component structure", "find orphaned classes",…
---
name: component-flattening-analysis
description: Detects misplaced classes and fixes component hierarchy problems — finds code that should belong inside a component but sits at the root level. Use when asking "clean up component structure", "find orphaned classes", "fix module hierarchy", "flatten nested components", or analyzing why namespaces have misplaced code. Do NOT use for dependency analysis (use coupling-analysis) or domain grouping (use domain-identification-grouping).
---
# Component Flattening Analysis
This skill identifies component hierarchy issues and ensures components exist only as leaf nodes in directory/namespace structures, removing orphaned classes from root namespaces.
## How to Use
### Quick Start
Request analysis of your codebase:
- **"Find orphaned classes in root namespaces"**
- **"Flatten component hierarchies"**
- **"Identify components that need flattening"**
- **"Analyze component structure for hierarchy issues"**
### Usage Examples
**Example 1: Find Orphaned Classes**
```
User: "Find orphaned classes in root namespaces"
The skill will:
1. Scan component namespaces for hierarchy issues
2. Identify orphaned classes in root namespaces
3. Detect components built on top of other components
4. Suggest flattening strategies
5. Create refactoring plan
```
**Example 2: Flatten Components**
```
User: "Flatten component hierarchies in this codebase"
The skill will:
1. Identify components with hierarchy issues
2. Analyze orphaned classes
3. Suggest consolidation or splitting strategies
4. Create refactoring plan
5. Estimate effort
```
**Example 3: Component Structure Analysis**
```
User: "Analyze component structure for hierarchy issues"
The skill will:
1. Map component namespace structure
2. Identify root namespaces with code
3. Find components built on components
4. Flag hierarchy violations
5. Provide recommendations
```
### Step-by-Step Process
1. **Scan Structure**: Map component namespace hierarchies
2. **Identify Issues**: Find orphaned classes and component nesting
3. **Analyze Options**: Determine flattening strategy (consolidate vs split)
4. **Create Plan**: Generate refactoring plan with steps
5. **Execute**: Refactor components to remove hierarchy
## When to Use
Apply this skill when:
- After gathering common domain components (Pattern 2)
- Before determining component dependencies (Pattern 4)
- When components have nested structures
- Finding orphaned classes in root namespaces
- Preparing for domain grouping
- Cleaning up component structure
- Ensuring components are leaf nodes only
## Core Concepts
### Component Definition
A **component** is identified by a **leaf node** in directory/namespace structure:
- **Leaf Node**: The deepest directory containing source files
- **Component**: Source code files in leaf node namespace
- **Subdomain**: Parent namespace that has been extended
**Key Rule**: Components exist only as leaf nodes. If a namespace is extended, the parent becomes a subdomain, not a component.
### Root Namespace
A **root namespace** is a namespace node that has been extended:
- **Extended**: Another namespace node added below it
- **Example**: `ss.survey` extended to `ss.survey.templates`
- **Result**: `ss.survey` becomes a root namespace (subdomain)
### Orphaned Classes
**Orphaned classes** are source files in root namespaces:
- **Location**: Root namespace (non-leaf node)
- **Problem**: No definable component associated with them
- **Solution**: Move to leaf node namespace (component)
**Example**:
```
ss.survey/ ← Root namespace (extended by .templates)
├── Survey.js ← Orphaned class (in root namespace)
└── templates/ ← Component (leaf node)
└── Template.js
```
### Flattening Strategies
**Strategy 1: Consolidate Down**
- Move code from leaf nodes into root namespace
- Makes root namespace the component
- Example: Move `ss.survey.templates` → `ss.survey`
**Strategy 2: Split Up**
- Move code from root namespace into new leaf nodes
- Creates new components from root namespace
- Example: Split `ss.survey` → `ss.survey.create` + `ss.survey.process`
**Strategy 3: Move Shared Code**
- Move shared code to dedicated component
- Creates `.shared` component
- Example: `ss.survey` shared code → `ss.survey.shared`
## Analysis Process
### Phase 1: Map Component Structure
Scan directory/namespace structure to identify hierarchy:
1. **Map Namespace Tree**
- Build tree of all namespaces
- Identify parent-child relationships
- Mark leaf nodes (components)
2. **Identify Root Namespaces**
- Find namespaces that have been extended
- Mark as root namespaces (subdomains)
- Note which namespaces extend them
3. **Locate Source Files**
- Find all source files in each namespace
- Map files to their namespace location
- Identify files in root namespaces
**Example Structure Mapping**:
```markdown
## Component Structure Map
```
ss.survey/ ← Root namespace (extended)
├── Survey.js ← Orphaned class
├── SurveyProcessor.js ← Orphaned class
└── templates/ ← Component (leaf node)
├── EmailTemplate.js
└── SMSTemplate.js
ss.ticket/ ← Root namespace (extended)
├── Ticket.js ← Orphaned class
├── assign/ ← Component (leaf node)
│ └── TicketAssign.js
└── route/ ← Component (leaf node)
└── TicketRoute.js
```
```
### Phase 2: Identify Orphaned Classes
Find source files in root namespaces:
1. **Scan Root Namespaces**
- Check each root namespace for source files
- Identify files that are orphaned
- Count orphaned files per root namespace
2. **Classify Orphaned Classes**
- **Shared Code**: Common utilities, interfaces, abstract classes
- **Domain Code**: Business logic that should be in component
- **Mixed**: Combination of shared and domain code
3. **Assess Impact**
- How many files are orphaned?
- What functionality do they contain?
- What components depend on them?
**Example Orphaned Class Detection**:
```markdown
## Orphaned ClassesExcerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 069343b
git clone https://github.com/tech-leads-club/agent-skills git -C agent-skills checkout 069343ba7895
The author documents no install command, so this uses the repository directly. Our verdict covers commit 069343ba7895 only.
Works in
The author has not said which agents this skill supports, and we have not tested it in any.
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
069343ba7895
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/tech-leads-club/component-flattening-analysis/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
tech-leads-club/agent-skills
When the user wants to build an AI-powered outreach system, write cold emails, improve deliverability, or scale personalized outreach. Also use when the user mentions 'cold email,' 'cold outreach,' 'outreach…
tech-leads-club/agent-skills
When the user wants to price an AI product, choose a charge metric, design pricing tiers, or optimize margins. Also use when the user mentions 'AI pricing,' 'usage-based pricing,' 'consumption pricing,' 'outcome…
tech-leads-club/agent-skills
When the user wants to deploy AI sales development reps, automate sales qualification, build signal-to-action routing, or design AI agent architecture for sales. Also use when the user mentions 'AI SDR,' 'AI sales…
tech-leads-club/agent-skills
When the user wants to build programmatic SEO with AI, create competitor alternative pages, optimize for AI Overviews, or scale content production. Also use when the user mentions 'SEO,' 'programmatic SEO,' 'AI…
tech-leads-club/agent-skills
When the user wants to create UGC ad campaigns, recruit UGC creators, generate AI UGC content, or scale with user-generated content. Also use when the user mentions 'UGC,' 'user-generated content,' 'creator ads,' 'Spark…
tech-leads-club/agent-skills
Expert AWS Cloud Advisor for architecture design, security review, and implementation guidance. Leverages AWS MCP tools for accurate, documentation-backed answers. Use when user asks about AWS architecture, security,…
Add this badge to your README
[](https://modelsatlas.com/skills/tech-leads-club/component-flattening-analysis/)
<a href="https://modelsatlas.com/skills/tech-leads-club/component-flattening-analysis/"><img src="https://modelsatlas.com/skills/tech-leads-club/component-flattening-analysis/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Component Flattening Analysis
What does the Component Flattening Analysis skill do?
Is Component Flattening Analysis safe to install?
What can Component Flattening Analysis access on my machine?
How current is this page?
Sources
- github.com/tech-leads-club/agent-skills/tree/main/packages/skill — the audited source at commit 069343ba7895 and every finding aboveObserved · 7 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Component Flattening Analysis skill do?
- Is Component Flattening Analysis safe to install?
- What can Component Flattening Analysis access on my machine?