-
Notifications
You must be signed in to change notification settings - Fork 3
Add documentation for using AI to create controls in Powerpipe mods #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 9 commits
645be58
a378c4b
a120101
b608ff3
6c8c62a
618f9a4
989cdbc
3b9a57c
0120b34
3b91f5e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,101 @@ | ||||||
| --- | ||||||
| title: Using AI for Control Development | ||||||
| sidebar_label: Using AI for Control Development | ||||||
| --- | ||||||
|
|
||||||
| # Using AI for Control Development | ||||||
|
|
||||||
| Creating new benchmarks, dashboards, and controls for Powerpipe mods with AI tools and IDEs works remarkably well. At Turbot, we develop these components frequently and use AI for almost every new implementation. The key is working within existing mod repositories - this gives AI tools access to established patterns and conventions to generate consistent, high-quality results. | ||||||
|
|
||||||
| If you're looking to use AI to run Powerpipe controls rather than develop new ones, you can use the [Powerpipe MCP server](../run/mcp), which provides powerful tools for AI agents to inspect and run controls, benchmarks, and queries. | ||||||
misraved marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| ## Getting Started | ||||||
|
|
||||||
| While AI often works well with simple requests like "Create a control for [requirement]", here are some prompts we use at Turbot that you may find helpful as starting points. | ||||||
|
|
||||||
| ### Prerequisites | ||||||
|
|
||||||
| 1. Open the mod repository in your IDE (Cursor, VS Code, Windsurf, etc.) to give AI tools access to all existing code and documentation. | ||||||
| 2. Ensure you have Powerpipe installed with all necessary plugins configured. | ||||||
| 3. Set up access to create test resources in the provider. | ||||||
| 4. Configure the [Powerpipe MCP server](https://github.com/turbot/powerpipe-mcp) which allows the agent to run controls. | ||||||
|
|
||||||
| ### Create Control | ||||||
|
|
||||||
| First, create the new control using existing controls and docs as reference. | ||||||
|
|
||||||
| #### Prompt | ||||||
|
|
||||||
| ```md | ||||||
| Your goal is to create a new Powerpipe control for <service> <resource type> and <check condition>. | ||||||
|
||||||
| Your goal is to create a new Powerpipe control for <service> <resource type> and <check condition>. | |
| Your goal is to create a new Powerpipe control for <resource type> to check for <condition>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make the same changes in other prompts as well
misraved marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
misraved marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be a bit longer, please see the prompt in the Steampipe doc as an example
Uh oh!
There was an error while loading. Please reload this page.