CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

mongoose-starter

Scaffold a Mongoose 8.x project with TypeScript, schemas, models, virtuals, instance/static methods, hooks (pre/post), discriminators, population, and connection management.

Quality

70%

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 ./database/mongoose-starter/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

53%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.

A highly actionable, well-structured skill whose code examples are concrete and executable, but it is a monolithic single-file body that inlines reference-level code and lacks validation/feedback loops for its database workflows. The main structural improvement is splitting the full model, repository, and aggregation examples into references/ files.

Suggestions

Move the full User/Post model, discriminator, repository, and aggregation code blocks into references/ files (e.g. references/models.md, references/repository-pattern.md), keeping SKILL.md as a concise overview with clearly signaled one-level-deep links.

Add validation/feedback steps for database initialization: verify index creation succeeded and provide error-recovery guidance when the connection or model loading fails, not just the initial ping.

Fix the index-creation command to work with the TypeScript setup (e.g. `npx tsx -e "import('./src/models').then(() => setTimeout(() => process.exit(), 3000))"`), since `node -e "require('./src/models')"` cannot load .ts files.

DimensionReasoningScore

Conciseness

The body is mostly lean code with little prose re-explaining concepts Claude already knows, but it includes unnecessary padding: a `console.log` post-save hook demo, placeholder comments ('In production, use bcrypt...'), and full-file code blocks reproducing standard Mongoose patterns. Not 4: the ~380-line body duplicates substantial reference-style code that adds tokens without adding non-obvious guidance.

3 / 5

Actionability

Mostly executable, copy-paste-ready code covering the common cases (singleton connection, typed model with virtuals/methods/hooks, repository CRUD, aggregation, discriminators). Not 5: `node -e "require('./src/models')"` cannot load TypeScript files (contradicting the tsx-based setup), and `npm run seed` is conditional on a script that may not exist — minor gaps that would fail if run verbatim.

4 / 5

Workflow Clarity

A logical scaffold sequence is present (prerequisites → install → DB init → structure → patterns) with one checkpoint (`mongosh --eval "db.runCommand({ ping: 1 })"`), but there are no validation/feedback loops for the database operations (nothing verifies index creation succeeded, no error-recovery guidance). Per the rubric's scoring notes, missing feedback loops in database-operation contexts caps workflow clarity at 3.

3 / 5

Progressive Disclosure

No bundle files exist; everything is inlined in a single ~380-line SKILL.md, with roughly 250 lines of full model/repository/aggregation code that clearly belongs in separate reference files. Not 3: there are no references at all to signal — the entire detail surface is monolithic despite good section headers.

2 / 5

Total

12

/

20

Passed

Description

75%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 specific, well-scoped description that clearly states what the skill does with comprehensive feature coverage. Its main weakness is the complete absence of a 'Use when...' trigger clause, and it omits natural trigger terms like 'MongoDB' and 'ODM' that users would commonly say.

Suggestions

Add an explicit trigger clause, e.g. 'Use when starting a Mongoose or MongoDB-backed TypeScript project, defining schemas/models, or setting up connection management.'

Include natural user-facing synonyms such as 'MongoDB', 'ODM', and 'database' alongside 'Mongoose' to improve trigger recall.

State when NOT to use it (e.g. existing Prisma/TypeORM projects) to further reduce conflict risk with other database skills.

DimensionReasoningScore

Specificity

The description enumerates many concrete capabilities — 'schemas, models, virtuals, instance/static methods, hooks (pre/post), discriminators, population, and connection management' — giving comprehensive coverage of the Mongoose feature surface. Not 4: the listed actions cover essentially the whole domain with no significant gaps.

5 / 5

Completeness

The 'what' is explicit and clear ('Scaffold a Mongoose 8.x project with TypeScript, schemas, models, ...'), but there is no 'Use when...' clause or equivalent trigger guidance, which caps completeness at 3 per the rubric guidelines. Not 4: the 'when' is entirely absent, not merely implicit.

3 / 5

Trigger Term Quality

Good natural keywords ('Mongoose', 'TypeScript', 'schemas', 'models', 'hooks', 'population') that users would actually say. Not 5: common variations like 'MongoDB', 'ODM', and 'database' are missing, so a user asking about MongoDB data modeling might not trigger it.

4 / 5

Distinctiveness Conflict Risk

'Mongoose 8.x' names a specific library with a clear niche, so it is easily distinguishable from other skills and unlikely to trigger the wrong one. Not 4: no meaningful overlap risk — the triggers (Mongoose, discriminators, population) are unique to this domain.

5 / 5

Total

17

/

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

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

15

/

16

Passed

Repository

achreftlili/deep-dev-skills

Path

database/mongoose-starter/SKILL.md

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.