بنقرة واحدة
scaffolding
Generate project scaffolds and boilerplate.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Generate project scaffolds and boilerplate.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Post-implementation integrity and quality audit.
Session-start skill discovery protocol.
Structured root-cause investigation for bugs and failures.
Execute implementation plan task-by-task inline.
Complete work with merge, PR, or cleanup options.
Integrity guardrails during code implementation.
استنادا إلى تصنيف SOC المهني
| name | scaffolding |
| description | Generate project scaffolds and boilerplate. |
Generate new code structures that match existing codebase conventions. Detect patterns first, then produce consistent output.
Core principle: Never generate from generic templates. Always derive from what already exists in the project.
Not for: one-off scripts, exploratory prototypes, or codebases without established patterns.
1. Detect — Scan existing code for conventions (structure, naming, imports, patterns)
2. Match — Identify which convention set applies to the new code
3. Generate — Produce scaffold matching detected conventions
4. Verify — Run lint, typecheck, and any project-specific validation
Before generating anything, analyze the codebase:
# Directory structure patterns
ls -la src/modules/ # or components/, services/, packages/
# File naming conventions
# kebab-case? PascalCase? index.ts barrels?
# Import patterns
# Absolute vs relative? Path aliases? Barrel exports?
# Test co-location
# __tests__/? *.test.ts beside source? test/ directory?
Look for:
Find the closest existing example to what you are creating. Use it as the template — not a generic scaffold.
# Find the most recently created module as reference
ls -lt src/modules/ | head -5
# Read its structure
ls -R src/modules/existing-module/
Produce files matching the detected patterns. Include:
# Must pass before considering scaffold complete
npm run lint # or project equivalent
npm run typecheck # or tsc --noEmit
npm test -- --bail # quick check that new tests run
If verification fails, fix issues before delivering. A scaffold that does not pass CI is worse than no scaffold.
| Convention | Where to detect | What to match |
|---|---|---|
| File naming | Sibling modules | Case style, suffixes (.service, .controller) |
| Exports | Barrel/index files | Named vs default, re-export patterns |
| Dependencies | package.json, imports | DI patterns, constructor args |
| Tests | Existing test files | Framework, setup, mocking approach |
| Docs | Existing modules | JSDoc, README, inline comments |
See references/common-scaffolds.md for templates covering frequent patterns:
These are starting points — always adapt to the detected codebase conventions.