Skip to content

Add OpenClaw skill in ClawHub format - #1

Merged
ssathy2 merged 3 commits into
mainfrom
siddharthsathyam7349/sc-144004
Jul 28, 2026
Merged

ssathy2 merged 3 commits into
mainfrom
siddharthsathyam7349/sc-144004

Conversation

@ssathy2

@ssathy2 ssathy2 commented Jul 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds an official IFTTT skill for OpenClaw agents, packaged in the format ClawHub (OpenClaw's public registry) expects, so this repo now carries the client-side pieces for one more ecosystem alongside the Cursor plugin.

OpenClaw natively supports remote streamable-HTTP MCP servers with OAuth (openclaw mcp login), so no code plugin is needed — a skill that teaches the agent to connect to https://ifttt.com/mcp and use it well covers the whole integration.

What's in the skill

openclaw/ifttt/SKILL.md is the existing plugin guidance restructured into ClawHub's single-file format:

  • New for OpenClaw: MCP server setup (mcp.servers config block, openclaw mcp login ifttt, headless --code flow) and server-level auth recovery via the OpenClaw CLI
  • Reused from plugins/ifttt/: the two-layer authentication model, IFTTT concepts and tool overview (ifttt-setup), the Applet build/edit/test workflow (ifttt-build-applet), and the safety guardrails (ifttt-lifecycle.mdc, folded into the skill since OpenClaw has no separate always-on rules artifact)

Other changes

  • openclaw/README.md — install command for users, publish steps for maintainers (kept outside the skill folder so it isn't part of the published bundle)
  • scripts/validate.mjs — validates each openclaw/<name>/ folder: SKILL.md present, frontmatter name/description/version set, name matches the directory and ClawHub's lowercase naming rules, version is semver
  • README.md, AGENTS.md, llms.txt, CONTRIBUTING.md — document the new install path and directory

Testing

  • node scripts/validate.mjs passes on the tree
  • Negative-tested the new validator checks with a malformed skill folder (wrong-case directory, mismatched name, non-semver version) — all three errors reported, then removed the fixture

Notes

Publishing to ClawHub (org publisher setup and clawhub skill publish) is a separate maintainer step documented in openclaw/README.md; nothing in this PR depends on it. ClawHub distributes published skills under MIT-0.

Summary by CodeRabbit

  • New Features

    • Added an OpenClaw (ClawHub-format) IFTTT skill guide, including end-to-end integration and usage guardrails.
    • Added OpenClaw skill installation and maintainer publishing instructions, including an @ifttt/ifttt example.
  • Documentation

    • Updated contributor and agent guidance for the new openclaw/<name>/SKILL.md structure and required frontmatter.
    • Linked the new OpenClaw skill in install guidance and reference listings.
  • Bug Fixes

    • Improved validation for OpenClaw skill SKILL.md frontmatter, supporting quoted values and enforcing required keys, naming, and semver rules.

Adds openclaw/ifttt/SKILL.md — the existing ifttt-setup and
ifttt-build-applet skills plus the ifttt-lifecycle guardrails,
restructured into ClawHub's single-file skill format with
OpenClaw-specific setup (mcp.servers config + openclaw mcp login).
Extends scripts/validate.mjs to check the frontmatter, documents
publishing in openclaw/README.md, and adds the OpenClaw install
path to README, AGENTS.md, llms.txt, and CONTRIBUTING.
@coderabbitai

coderabbitai Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: IFTTT/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: cd6ee5ef-cd27-4375-8c6a-71338dc95307

📥 Commits

Reviewing files that changed from the base of the PR and between 2c6289b and 0be0075.

📒 Files selected for processing (1)
  • scripts/validate.mjs
🚧 Files skipped from review as they are similar to previous changes (1)
  • scripts/validate.mjs

📝 Walkthrough

Walkthrough

The repository adds a ClawHub-format OpenClaw IFTTT skill, documents its installation and publishing workflows, and extends validation to check skill directories and frontmatter metadata.

Changes

OpenClaw skill support

Layer / File(s) Summary
Define the OpenClaw IFTTT skill
openclaw/ifttt/SKILL.md, openclaw/README.md
Adds IFTTT MCP setup, authentication, Applet workflows, guardrails, installation instructions, and ClawHub publishing guidance.
Validate OpenClaw skill metadata
scripts/validate.mjs
Parses quoted frontmatter values and validates OpenClaw skill directories, required frontmatter, directory-name matching, naming format, and semver versions during the main validation flow.
Document installation and maintenance paths
AGENTS.md, CONTRIBUTING.md, README.md, llms.txt
Adds OpenClaw installation guidance, repository layout details, maintenance conventions, and links to the skill documentation.

Estimated code review effort: 3 (Moderate) | ~20 minutes

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: adding an OpenClaw skill in ClawHub format.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch siddharthsathyam7349/sc-144004

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 7

🧹 Nitpick comments (1)
openclaw/ifttt/SKILL.md (1)

56-59: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

List connect_service in the tool overview.

The authentication workflow depends on connect_service, but the discovery/tool list omits it. Add a connection-recovery entry so agents can discover the required call instead of only encountering it later in the prose.

Proposed tool overview adjustment
 Discovery (read-only):
 - `get_user_info` — account, plan tier, and limits
 - `search_services` / `get_services` — find services by keyword or list them
 - `get_steps` — fetch triggers, queries, and actions for one or more services in a single call
 - `get_triggers` / `get_queries` / `get_actions` — per-service, per-type variants
 - `my_applets` / `search_applets` / `get_applet` — inspect the user's existing Applets
 
+Connection recovery:
+- `connect_service` — start or restore an individual service connection
+
 Applet lifecycle:

Also applies to: 72-78

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@openclaw/ifttt/SKILL.md` around lines 56 - 59, Update the tool overview in
SKILL.md to include connect_service as a discoverable connection-recovery tool,
alongside the existing tool entries. Ensure the overview identifies its role in
handling unconnected or expired service accounts, matching the workflow
described in the Layer 2 instructions.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@openclaw/ifttt/SKILL.md`:
- Around line 41-43: Fix the MD040 warnings by adding the sh language identifier
to all three shell-command fences: openclaw/ifttt/SKILL.md lines 41-43,
openclaw/README.md lines 7-9, and openclaw/README.md lines 17-26.
- Around line 5-8: Change the frontmatter’s nested metadata.openclaw block to a
single-line JSON object, preserving both the emoji and homepage fields so the
OpenClaw skill parser reads them correctly.
- Around line 21-45: Update the “Connect the MCP server” instructions after the
IFTTT server configuration block to include `openclaw mcp reload` before
`openclaw mcp login ifttt`, ensuring the current OpenClaw process recognizes the
new server before authentication.

In `@README.md`:
- Around line 17-23: Align the publication references across README.md lines
17-23, AGENTS.md lines 21-22, and llms.txt line 23: either publish `@ifttt/ifttt`
before retaining the ClawHub install guidance or replace it with a temporary
local-install workflow; remove or defer the ClawHub command in AGENTS.md, and
replace “Published at” in llms.txt with the intended pre-publication location.
- Around line 19-21: Label the shell command code fence containing `openclaw
skills install `@ifttt/ifttt`` with `sh` or `shell` on its opening delimiter,
leaving the command unchanged.

In `@scripts/validate.mjs`:
- Around line 294-295: Replace the regex validation in the parsed.version check
within validate.mjs with a real SemVer parser that accepts valid prerelease and
build metadata, while rejecting leading-zero versions and other invalid SemVer
values. Preserve the existing addError message behavior, and add tests covering
valid values such as 1.0.0-rc.1 and 1.0.0+build plus invalid values such as
01.2.3.
- Around line 273-295: Update the frontmatter parsing used before the validation
loop around parseFrontmatter so it parses SKILL.md metadata as YAML rather than
splitting key-value lines. Ensure quoted scalars and block values are returned
as their actual YAML values, while preserving the existing missing-frontmatter,
required-field, name, and version validation behavior.

---

Nitpick comments:
In `@openclaw/ifttt/SKILL.md`:
- Around line 56-59: Update the tool overview in SKILL.md to include
connect_service as a discoverable connection-recovery tool, alongside the
existing tool entries. Ensure the overview identifies its role in handling
unconnected or expired service accounts, matching the workflow described in the
Layer 2 instructions.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: IFTTT/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 2a98fb39-53a0-43ae-a9e0-71001673d43e

📥 Commits

Reviewing files that changed from the base of the PR and between b4714ef and c688a3d.

📒 Files selected for processing (7)
  • AGENTS.md
  • CONTRIBUTING.md
  • README.md
  • llms.txt
  • openclaw/README.md
  • openclaw/ifttt/SKILL.md
  • scripts/validate.mjs

Comment thread openclaw/ifttt/SKILL.md Outdated
Comment thread openclaw/ifttt/SKILL.md
Comment thread openclaw/ifttt/SKILL.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread scripts/validate.mjs
Comment thread scripts/validate.mjs Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds an OpenClaw/ClawHub-format skill distribution to the repo (alongside the existing Cursor plugin), plus documentation and CI validation to support shipping and maintaining that skill.

Changes:

  • Added openclaw/ifttt/SKILL.md as a single-file ClawHub skill for OpenClaw agents.
  • Extended scripts/validate.mjs to validate openclaw/<name>/SKILL.md presence and required frontmatter fields.
  • Updated top-level and contributor/agent docs to describe the OpenClaw install path and repository layout.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
scripts/validate.mjs Adds OpenClaw skill directory validation and hooks it into the main validator run.
README.md Documents OpenClaw install path and adds openclaw/ to the repo layout overview.
openclaw/README.md Provides user install + maintainer publishing instructions for ClawHub/OpenClaw skills.
openclaw/ifttt/SKILL.md Introduces the ClawHub-format OpenClaw skill content for the IFTTT MCP server.
llms.txt Adds the OpenClaw skill link to the LLM discovery index.
CONTRIBUTING.md Documents OpenClaw skill structure requirements and points to the OpenClaw README.
AGENTS.md Updates agent orientation and file map to include the OpenClaw skill path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/validate.mjs
Comment thread llms.txt Outdated
- Serialize metadata.openclaw as single-line JSON so OpenClaw's
  fallback frontmatter parser keeps emoji/homepage
- Add openclaw mcp reload before mcp login in setup steps
- List connect_service in the skill's tool overview
- Mark the ClawHub install path as pending first publish in
  README, AGENTS.md, and llms.txt
- Strip surrounding quotes from frontmatter values in validate.mjs
- Replace the version check with the full SemVer 2.0.0 pattern
  (accepts prerelease/build, rejects leading zeros)
- Add language identifiers to shell code fences
@ssathy2

ssathy2 commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator Author

Addressed all review feedback in 2c6289b:

  • metadata.openclaw single-line JSON (coderabbitai): done — the frontmatter now uses the single-line JSON form so OpenClaw's fallback parser keeps emoji and homepage.
  • openclaw mcp reload before login (coderabbitai): done — added to the setup steps in SKILL.md.
  • connect_service missing from the tool overview (coderabbitai): done — added under a new "Connections" group with a pointer to the Authenticating section.
  • Docs advertised an unpublished ClawHub listing (coderabbitai, Copilot): done — README, AGENTS.md, and llms.txt now mark the listing as pending first publish. We'll drop the caveats in a small follow-up once the first clawhub skill publish lands.
  • Quoted frontmatter values break name/version checks (coderabbitai, Copilot): done — parseFrontmatter now strips surrounding matching quotes, so name: "ifttt" validates correctly.
  • Semver regex too strict/loose (coderabbitai, Copilot): done — replaced with the full SemVer 2.0.0 pattern from semver.org, inlined to keep the repo dependency-free rather than pulling in the semver package for one check. Verified 1.0.0-rc.1 and 1.0.0+build pass and 01.2.3 fails; there's no unit-test harness in this repo, so the checks were exercised with throwaway fixtures against scripts/validate.mjs (which CI runs).
  • MD040 bare code fences (coderabbitai): done — all new shell fences are now ```sh.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Comment thread scripts/validate.mjs Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@ssathy2
ssathy2 merged commit 8c240dc into main Jul 28, 2026
2 checks passed
@ssathy2
ssathy2 deleted the siddharthsathyam7349/sc-144004 branch July 28, 2026 16:40
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.

2 participants