1---2name: 028-agents-ed94fc763description: Repository Guidelines4---5# Repository Guidelines67## Project Structure & Module Organization8- `package.json`: VS Code extension manifest (language id `prompt`) with PDD CLI integration commands.9- `language-configuration.json`: Brackets, comments, and editor behaviors for `.prompt` files.10- `syntaxes/prompt.tmLanguage.json`: TextMate grammar for `.prompt` files.11- `prompts/prompt.tmLanguage_json.prompt`: Source asset/example used for grammar work.12- `src/extension.ts`: Main extension entry point with command registration for PDD CLI features.13- `src/pddInstaller.ts`: Smart PDD CLI installation and detection system with uv-first logic.14- Docs: `README.md`, `CHANGELOG.md`, `LICENSE.md`, `vsc-extension-quickstart.md`.1516## Build, Test, and Development Commands17- Run locally: open in VS Code and use "Run Extension" (F5) to launch an Extension Development Host.18- Package: `npm install -g @vscode/vsce` then `vsce package` to create a `.vsix`.19- Publish (maintainers): `vsce publish` with the configured `publisher` in `package.json`.20- Lint/format: none configured; see Style section before adding tools.21- Test PDD CLI integration: use the "PDD: Install CLI" command in the Extension Development Host.22- Debug installation: check VS Code Developer Console for detailed logging from pddInstaller.ts.2324## Coding Style & Naming Conventions25- JSON: 2-space indentation, UTF-8, no trailing commas.26- TypeScript: Standard TypeScript conventions, async/await for promises, clear function names.27- Filenames: lowercase, hyphenated where needed (e.g., `my-asset.json`).28- Grammar: keep scope names consistent; place grammars under `syntaxes/` and configs at repo root.29- Language id and extension remain `prompt` / `.prompt` unless a breaking change is planned.3031## Testing Guidelines32- Manual checks: open a `.prompt` file in the Extension Development Host and use “Developer: Inspect Editor Tokens and Scopes”.33- Scenarios: verify keywords, strings, comments, and edge cases render as expected.34- Optional tooling (future): `vscode-tmgrammar-test` for snapshot-based grammar tests. Keep sample files under `test-fixtures/` if added.3536## Commit & Pull Request Guidelines37- Commits: present-tense, imperative (“Add…”, “Fix…”). Use short scope prefixes when helpful (e.g., `grammar:`, `docs:`, `chore:`). Keep subjects ≤72 chars.38- PRs: include summary, motivation, before/after screenshots or GIFs for highlighting changes, and link related issues.39- Changelog: update `CHANGELOG.md` for user-visible changes; bump version in `package.json` when publishing.4041## Security & Configuration Tips42- Keep `engines.vscode` accurate; test against that VS Code version.43- No runtime code here; validate JSON with a linter or VS Code JSON schema hints before committing.