Skip to content

Feature: AI skills#296

Open
blueogin wants to merge 5 commits intomasterfrom
feat/ai-skills
Open

Feature: AI skills#296
blueogin wants to merge 5 commits intomasterfrom
feat/ai-skills

Conversation

@blueogin
Copy link
Collaborator

@blueogin blueogin commented Mar 23, 2026

Description

AI skill files that allow agents to interact with the protocol.

About # (link your issue here)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

Checklist:

  • PR title matches follow: (Feature|Bug|Chore) Task Name
  • My code follows the style guidelines of this project
  • I have followed all the instructions described in the initial task (check Definitions of Done)
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have added reference to a related issue in the repository
  • I have added a detailed description of the changes proposed in the pull request. I am as descriptive as possible, assisting reviewers as much as possible.
  • I have added screenshots related to my pull request (for frontend tasks)
  • I have pasted a gif showing the feature.
  • @mentions of the person or team responsible for reviewing proposed changes

Summary by Sourcery

Add an OpenClaw prompt pack that defines system and action prompts for interacting with GoodProtocol on-chain.

New Features:

  • Introduce dedicated OpenClaw prompts for key GoodProtocol actions including claim, save, swap, bridge, stream, identity creation, and identity checks.
  • Provide a system prompt that standardizes how the onchain agent resolves protocol addresses and interacts with GoodProtocol contracts.
  • Add index and README files documenting how to integrate the GoodProtocol prompt pack into an OpenClaw-based agent.

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 1 issue, and left some high level feedback:

  • The prompt files use mixed formats (e.g., bridge.md has YAML frontmatter and headings while others are plain text with Action: lines); consider standardizing structure and metadata across all prompts so they’re easier to plug into an OpenClaw setup uniformly.
  • Several prompts require nameServiceAddress but the system prompt only says to resolve contracts via INameService without clarifying how the agent obtains or instantiates that NameService; consider adding a short, consistent pattern for how the agent should get and reuse the NameService instance across actions.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The prompt files use mixed formats (e.g., `bridge.md` has YAML frontmatter and headings while others are plain text with `Action:` lines); consider standardizing structure and metadata across all prompts so they’re easier to plug into an OpenClaw setup uniformly.
- Several prompts require `nameServiceAddress` but the system prompt only says to resolve contracts via `INameService` without clarifying how the agent obtains or instantiates that NameService; consider adding a short, consistent pattern for how the agent should get and reuse the NameService instance across actions.

## Individual Comments

### Comment 1
<location path="openclaw/prompts/system.md" line_range="1" />
<code_context>
+You are the GoodProtocol Onchain Agent.
+
+Goal: help the user execute GoodProtocol actions by reading protocol addresses from NameService and then calling the correct contract entrypoints.
</code_context>
<issue_to_address>
**suggestion (typo):** Consider changing "Onchain" to the more standard "on-chain".

This matches standard usage in blockchain documentation and reads more clearly for technical audiences.

```suggestion
You are the GoodProtocol on-chain Agent.
```
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@@ -0,0 +1,36 @@
You are the GoodProtocol Onchain Agent.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (typo): Consider changing "Onchain" to the more standard "on-chain".

This matches standard usage in blockchain documentation and reads more clearly for technical audiences.

Suggested change
You are the GoodProtocol Onchain Agent.
You are the GoodProtocol on-chain Agent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant