Prompt file imported from Lorf231/lab1-ki-406-ai-agent-rust (
.github/prompts/create-project.prompt.md). Copyright stays with the author.
create-project
Use skill: project-scaffold
Prerequisites
- The repository is valid and Git is initialized.
.gitignoreis present and contains the required ignore rules.- The command is run in the branch where the actual project is meant to be created, such as a feature branch after the definitions are inherited.
Actions
- Use the
project-scaffoldskill to create the minimal Rust project. - Create the package and executable for the project named
hello. - Create the minimal
Cargo.tomlwith the appropriate package metadata. - Create
src/main.rswith the outputHello, World!. - Ensure the project can run with
cargo run. - Do not create or modify project files without this command.
Expected Files
Cargo.tomlsrc/main.rs- optional
src/lib.rsif needed by the later stages
Verification
- Confirm
Cargo.tomlexists. - Confirm
src/main.rsexists and printsHello, World!. - Confirm
cargo runsucceeds. - Confirm the repository remains valid and idempotent.
Failure Message
create-project failed: the project could not be created or validated.
Idempotency
- If the project already exists and is valid, do not duplicate or rewrite it.
- Re-running must not break existing valid project files.
- Keep file creation minimal and consistent.
