obsidianmd/obsidian-sample-plugin ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple Obsidian plugin in TypeScript that shows the basics of how a community plugin works.

I want it to add a ribbon icon that pops a notice when I click it, plus a command called Open modal simple that opens a small modal window. It should also add a settings tab in Obsidian so I can see a basic plugin settings page, and include a global click listener that shows a notice when I click anywhere. For the sake of demonstration, it should also start a repeating timer that logs setInterval to the console.

Please set it up so it follows normal Obsidian plugin best practices, with the usual manifest, styles, build config, and linting already wired in. Keep it clean and easy to extend, and make sure it compiles into the main plugin file the way Obsidian expects. If you need to check current Obsidian plugin docs while doing it, go ahead and look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab