[PR #295] [CLOSED] feat: add mdnew skill #312

Closed
opened 2026-02-15 17:16:50 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/openclaw/clawhub/pull/295
Author: @ThendCN
Created: 2/14/2026
Status: Closed

Base: mainHead: feat/add-mdnew-skill


📝 Commits (1)

  • 9d735bb feat: add mdnew skill for clean markdown fetching

📊 Changes

2 files changed (+59 additions, -0 deletions)

View changed files

packages/schema/skills/mdnew/SKILL.md (+23 -0)
packages/schema/skills/mdnew/scripts/mdnew.py (+36 -0)

📄 Description

Add mdnew skill that uses markdown.new for clean markdown fetching from any URL.

Greptile Overview

Greptile Summary

This PR introduces a new mdnew skill that fetches clean, agent-optimized Markdown from URLs using the markdown.new service. The skill includes a Python script that makes HTTP requests to the markdown.new API and returns formatted content.

Key changes:

  • Added SKILL.md with frontmatter metadata and documentation explaining the skill's purpose, usage, and benefits (token efficiency, clean data extraction, JS execution support)
  • Implemented mdnew.py script that constructs API requests to https://markdown.new/{url}, handles responses with 30-second timeout, and extracts the x-markdown-tokens header for token count estimation
  • The script follows standard Python practices with proper error handling and UTF-8 decoding

The implementation is straightforward and follows expected patterns for skill scripts. One minor optimization: the unused urllib.parse import can be removed.

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • The changes are well-contained, introducing a simple new skill with clear documentation. The Python script uses standard library functions with appropriate error handling and timeout. The only issue found is a minor unused import that doesn't affect functionality. The SKILL.md follows the expected format with proper frontmatter metadata. No security concerns, logical errors, or breaking changes identified.
  • No files require special attention

Last reviewed commit: 9d735bb

(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/openclaw/clawhub/pull/295 **Author:** [@ThendCN](https://github.com/ThendCN) **Created:** 2/14/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/add-mdnew-skill` --- ### 📝 Commits (1) - [`9d735bb`](https://github.com/openclaw/clawhub/commit/9d735bba5370e7fc88c576795d1f9bcc7377cf90) feat: add mdnew skill for clean markdown fetching ### 📊 Changes **2 files changed** (+59 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `packages/schema/skills/mdnew/SKILL.md` (+23 -0) ➕ `packages/schema/skills/mdnew/scripts/mdnew.py` (+36 -0) </details> ### 📄 Description Add mdnew skill that uses markdown.new for clean markdown fetching from any URL. <!-- greptile_comment --> <h2>Greptile Overview</h2> <h3>Greptile Summary</h3> This PR introduces a new `mdnew` skill that fetches clean, agent-optimized Markdown from URLs using the markdown.new service. The skill includes a Python script that makes HTTP requests to the markdown.new API and returns formatted content. Key changes: - Added `SKILL.md` with frontmatter metadata and documentation explaining the skill's purpose, usage, and benefits (token efficiency, clean data extraction, JS execution support) - Implemented `mdnew.py` script that constructs API requests to `https://markdown.new/{url}`, handles responses with 30-second timeout, and extracts the `x-markdown-tokens` header for token count estimation - The script follows standard Python practices with proper error handling and UTF-8 decoding The implementation is straightforward and follows expected patterns for skill scripts. One minor optimization: the unused `urllib.parse` import can be removed. <h3>Confidence Score: 5/5</h3> - This PR is safe to merge with minimal risk - The changes are well-contained, introducing a simple new skill with clear documentation. The Python script uses standard library functions with appropriate error handling and timeout. The only issue found is a minor unused import that doesn't affect functionality. The SKILL.md follows the expected format with proper frontmatter metadata. No security concerns, logical errors, or breaking changes identified. - No files require special attention <sub>Last reviewed commit: 9d735bb</sub> <!-- greptile_other_comments_section --> <sub>(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!</sub> <!-- /greptile_comment --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 17:16:50 -05:00
yindo closed this issue 2026-02-15 17:16:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: openclaw/clawhub#312