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

- Skill: `lurui1997/app-factory` (Agent Skill, multi-file: 10 files)
- Install (CLI): `npx skillmds@latest add lurui1997/app-factory`
- Raw SKILL.md: https://api.skillmd.com/api/skills/lurui1997/app-factory/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: lurui1997 (https://skillmd.com/u/lurui1997)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/lurui1997/app-factory

---


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

