CtrlK
BlogDocsLog inGet started
Tessl Logo

component-flattening-analysis

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).

60

Quality

71%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./packages/skills-catalog/skills/(architecture)/component-flattening-analysis/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

56%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body delivers a clear, actionable five-phase methodology with concrete code and examples, but at roughly triple the necessary length due to heavy duplication of the same example artifacts and repeated restatements of the core rule. Consolidating the redundant example reports and moving patterns, output templates, and fitness functions to reference files would substantially improve token efficiency and structure.

Suggestions

Cut the duplicated ss.survey example reports: render the full orphaned-class report and flattening plan once (e.g. in an Output Format section) and reference it from Phases 2 and 4 instead of repeating near-identical copies.

Split Common Patterns, Implementation Notes, and Fitness Functions into reference files (e.g. references/patterns.md, references/fitness-functions.md) and keep SKILL.md as a lean overview with clearly signaled links.

Merge the redundant restatements of the leaf-node rule (Core Concepts, Best Practices, Notes) into one authoritative section, and fix the broken code fencing in the Phase 1 structure-mapping example.

DimensionReasoningScore

Conciseness

The ~688-line body is noticeably padded: the same ss.survey 5-orphaned-file example is rendered as a full report at least three times (Phase 2, Phase 4, Output Format), and "components exist only as leaf nodes" is restated across Core Concepts, Do's/Don'ts, Notes, and the Checklist. This fits the 'noticeably verbose; several unnecessary explanations or padded sections' anchor; it is not a 1 because the core domain definitions are skill-specific, not knowledge Claude already has.

2 / 5

Actionability

Concrete guidance throughout: executable JavaScript detection/fitness functions, per-language structure examples (Node.js services/, Java packages), and decision criteria ("Use when: Leaf nodes are small, related functionality"). It is not a 5 because the code consumes undefined inputs (namespaces, sourceFiles objects) with no guidance on deriving them from an actual repository.

4 / 5

Workflow Clarity

Phases 1-5 (Map -> Identify -> Analyze Options -> Plan -> Execute) are clearly sequenced, with a verification phase ("Verify Changes: Run tests, Check for broken references, Validate component structure") and an execution checklist. It is not a 5 because there is no feedback loop for failure (e.g. what to do when tests fail after refactoring), and not a 3 because checkpoints are explicit and present in both the plan and execute phases.

4 / 5

Progressive Disclosure

The file has clear section headers but is a monolithic 688-line document with zero external reference files; output-format templates, common patterns, and fitness-function code that belong in separate reference files are all inlined. This fits the 'some structure but content that should be separate is inline' anchor; it is not a 2 because section headers and a consistent hierarchy do provide navigable structure.

3 / 5

Total

13

/

20

Passed

Description

87%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: concrete third-person capability statement, explicit and natural trigger phrases, and well-delineated boundaries against sibling skills. The only weakness is modest synonym coverage in its trigger terms and slightly overlapping capability statements.

DimensionReasoningScore

Specificity

The description lists several concrete actions in third person ("Detects misplaced classes and fixes component hierarchy problems — finds code that should belong inside a component but sits at the root level"), matching the 'several specific actions; minor gaps' anchor. It is not a 5 because the stated actions largely overlap (detecting misplaced classes, finding root-level code) rather than covering distinct capabilities.

4 / 5

Completeness

It explicitly answers both what ("Detects misplaced classes and fixes component hierarchy problems") and when ("Use when asking 'clean up component structure', 'find orphaned classes', 'fix module hierarchy', 'flatten nested components', or analyzing why namespaces have misplaced code") with concrete trigger phrases, matching the top anchor exactly. It is not below 5 because both halves are present and specific.

5 / 5

Trigger Term Quality

Natural user phrases are well covered: "clean up component structure", "find orphaned classes", "fix module hierarchy", "flatten nested components", plus "misplaced code". It falls short of the 5 anchor because common variations users would say (e.g. "restructure", "organize components", "nested packages") are missing.

4 / 5

Distinctiveness Conflict Risk

The description carves out a clear niche and adds explicit negative boundaries naming sibling skills ("Do NOT use for dependency analysis (use coupling-analysis) or domain grouping (use domain-identification-grouping)"), minimizing wrong-skill triggering. This matches the 'clear niche with distinct triggers; minimal conflict risk' anchor.

5 / 5

Total

18

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

SKILL.md is long (694 lines); consider splitting into references/ and linking

Warning

Total

15

/

16

Passed

Repository
tech-leads-club/agent-skills
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.