maksimzayats/specx/specx-foundation

Claude Code and agent skill by maksimzayats/specx

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use specx foundation bases in Python services, or add a tiny project-local `foundation/` base for missing categories or stateful framework bases.

Install

npx vskill@latest install maksimzayats/specx/specx-foundation

SKILL.md

specx Foundation

Use this skill when a service class needs an explicit base, or when a new class category may need a project-local foundation base. Read references/foundation.md before editing foundation-related code.

Workflow

  1. Prefer packaged scoped bases from specx.core.foundation,

specx.delivery.foundation, and specx.infrastructure.foundation.

  1. Do not create an empty src/<package>/foundation/ package.
  2. Add a project-local foundation/ module only when current code needs a real

project-local base category or a stateful framework base that must not be shared globally, such as a SQLAlchemy declarative base.

  1. Keep project-local foundation limited to base definitions: marker bases,

common external-base wrappers, justified ABCs, and stateful framework bases. Put stable cross-scope concrete primitives under shared/, not foundation/.

  1. Give every project source class, including each local base, a docstring that

explains what it protects and includes a concrete usage example.

  1. Make every non-foundation project source class inherit an explicit scoped

base.

  1. Name each class with the suffix implied by its base ancestry, such as

TaskDTO, TaskEntity, TaskResponseSchema, CreateTaskUseCase, or TaskTitleNormalizerService.

  1. Use BaseLifecycle for delivery app lifespan managers such as

FastAPILifecycle.

  1. Prefer @dataclass(frozen=True, kw_only=True, slots=True) for commands,

queries, DTOs, entities, and other core data classes unless the user asks for another model type.

  1. Keep BaseCommand and BaseQuery as use-case input bases, independent from

BaseDTO. Commands and queries are not result DTOs.

  1. When an application value has a limited known set, model it with

BaseStrEnum instead of plain str or Literal[...].

  1. Keep business rules, delivery behavior, adapter code, and runtime wiring out

of project-local foundation modules.

Code Style

Use blank lines as logical separators in all code. Keep related statements together, but separate independent setup, action, assertion, response, branch, and transformation groups so long blocks stay readable.

References

  • references/foundation.md - packaged base catalog, import paths, extension

rules, and architecture guardrails.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
200
Repository forks
36
7-day trend score
27

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 27 Jul 2026, 3 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/maksimzayats/specx/specx-foundation/badge)](https://verified-skill.com/skills/maksimzayats/specx/specx-foundation)

Something wrong with this skill or its page? Tell us.