Developing plugins for kibana

Hi. In my dicovery page of kibana i'm using url format field (kibana format) I want to that ref in field opend in modal window or something, not in new tab or current tab. I met kibana plugin develobment. The command
node script/generate_plugin.js -name portaudit -y gives me folder plugin/portaudit with consist

plugins/portaudit/
├── common
│   └── index.ts
├── kibana.json
├── package.json
├── public
│   ├── application.tsx
│   ├── components
│   │   └── app.tsx
│   ├── index.scss
│   ├── index.ts
│   ├── plugin.ts
│   └── types.ts
├── README.md
├── server
│   ├── index.ts
│   ├── plugin.ts
│   ├── routes
│   │   └── index.ts
│   └── types.ts
├── translations
│   └── ja-JP.json
└── tsconfig.json

When I starting kibana I got an error like "Elastic did not load properly. Check the server output for more information." and i got 404 for link 9007199254740991/bundles/plugin/portaudit/1.0.0/portaudit.plugin.js
Then I create folder and file

mkdir -p target/public
touch target/public/portaudit.plugin.js

The 404 turn to 200 and i got another error

Version: 7.15.1
Build: 9007199254740991
Error: Definition of plugin "portaudit" not found and may have failed to load.
    at read (http://localhost:5601/9007199254740991/bundles/core/core.entry.js:18630:11)
    at PluginWrapper.createPluginInstance (http://localhost:5601/9007199254740991/bundles/core/core.entry.js:18467:84)
    at PluginWrapper.setup (http://localhost:5601/9007199254740991/bundles/core/core.entry.js:18420:26)
    at PluginsService.setup (http://localhost:5601/9007199254740991/bundles/core/core.entry.js:18725:40)
    at async CoreSystem.setup (http://localhost:5601/9007199254740991/bundles/core/core.entry.js:12737:7)
    at async Module.__kbnBootstrap__ (http://localhost:5601/9007199254740991/bundles/core/core.entry.js:16789:17)

How I can run my own plugin?
I planned using jquery to get all elenents of <a> tag in discovery, set onclick function and open it with window.open method of js.
Is in possible with kibana plugins? I relaly weak with React Vue os somethng. Maybe someone tells me how to deal with it correctly. Thanks.

Hello @Slava_Gavrilov

Have you tried building your plugin? Plugin tooling | Kibana Guide [7.15] | Elastic