App Factory

Scaffold new projects with standardized boilerplate, directory structure, and tool configurations. Use when initializing a new repository, setting up a microservice, creating a library package, or onboarding a new codebase with team conventions.

lurui1997 Updated

File contents

Create App

Generate minimal, opinionated project skeletons aligned with team standards.

Directory Structure

  • Keep a flat top level: src/, tests/, docs/, scripts/.
  • Place configuration files at the root unless the toolchain requires otherwise.

Base Configuration

  • Include package manifest (package.json, pyproject.toml, Cargo.toml) with standard metadata.
  • Add linting, formatting, and pre-commit hooks from the start.
  • Include a basic test runner with one passing smoke test.

Common Modules

  • Config: environment-aware settings loader.
  • Logging: structured logger initialization.
  • Entry point: minimal main / index file that wires dependencies.

Toolchain Defaults

  • TypeScript: tsconfig.json with strict mode.
  • Python: ruff for linting, pytest for tests.
  • Rust: clippy and cargo-nextest pre-configured.

Next Steps

  • After scaffolding, verify the build passes and the smoke test succeeds.
  • Document how to run, test, and deploy in a short README.md at the root.

lurui1997/awesome_skills/tree/main/app-factory commit 97018df353

Frequently asked questions

npx skillmds@latest add lurui1997/app-factory