Notes for AI agents
Running the generator from an agent
Section titled “Running the generator from an agent”An agent has no terminal to answer prompts in, so give it every answer up front and add --yes:
npm create @mnaoumov/obsidian-plugin "--" --yes --mode=create --pluginId=my-tool --pluginName="My Tool" --pluginDescription="Does one thing well." --authorName="John Doe" --authorGitHubName=johndoe--yesnever waits for input. A question no flag answers stops the run with an error naming the flag to add, so an agent sees exactly what is missing rather than hanging.--mode=createor--mode=updateis required under--yeswhen the current directory already holds a generated project, and--forcewhen the target folder already exists.--yesinstalls, formats and commits nothing. The closingNext stepsline lists what is left to run.--helpprints every answer and the values it accepts, so the agent can read the options rather than guess them.- Agents on Windows often run commands through
PowerShell. Keep the quotes around"--", ornpmreads the flags as its own; see The – separator in PowerShell.
Filing an issue against this generator
Section titled “Filing an issue against this generator”Open issues through the issue forms, not as blank issues.
Filing from the CLI or the API (gh issue create --body, or an AI agent filing for you) skips the form, and gh issue create --template cannot load an issue form. In that case, open the matching form in .github/ISSUE_TEMPLATE/, copy every field as a ### <label> heading in the form’s order, and fill in each one. Always state the version you used and your operating system.
What the generated project tells agents
Section titled “What the generated project tells agents”With the issue forms, the generated README and CONTRIBUTING.md carry the same Filing an issue (for AI agents and humans) section for your plugin, asking for the plugin version, the Obsidian version and the operating system.
The project has no AGENTS.md. A generated one could only restate the README about code nobody has written yet, and it would need maintaining from the moment it existed. Write your own once the plugin has something to say.