Article extractor

From terrylica/cc-skills · View interactive version

Article extractor is an AI agent skill from the GitHub repository terrylica/cc-skills. Extract MQL5 articles and documentation. TRIGGERS - MQL5 articles, MetaTrader docs, mql5.com resources.

How to use this skill

Skill file

MQL5 Article Extractor

Extract technical trading articles from mql5.com for training data collection. Scope limited to mql5.com domain only.

Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.

When to Use This Skill

Use this skill when:

Scope Boundaries

VALID requests:

OUT OF SCOPE:

If user requests non-mql5.com extraction, respond: "This skill extracts articles from mql5.com ONLY. For other sites, use different tools."

Repository Location

Working directory: $HOME/code/<mt5-project> (adjust path for your environment)

Always execute commands from this directory:

cd "$HOME/code/mt5-local"

Valid Input Types

1. Article URL (Most Specific)

Format: https://www.mql5.com/en/articles/[ID] Example: https://www.mql5.com/en/articles/19625 Action: Extract single article

2. User ID (Numeric or Username)

Format: Numeric (e.g., 29210372) or username (e.g., jslopes) Source: From mql5.com profile URL Action: Auto-discover and extract all user's articles

3. URL List File

Format: Text file with one URL per line Action: Batch process multiple articles

4. Vague Request

If user says "extract mql5 articles" without specifics, prompt for:

  1. Article URL OR User ID
  2. Quantity limit (for testing)
  3. Output location preference

Reference Documentation

For detailed information, see:


Troubleshooting

| Issue | Cause | Solution |

| ---------------------- | ----------------------------- | ------------------------------------------------- |

| Non-mql5.com URL | Skill only supports mql5.com | Use other tools for non-mql5.com sites |

| Article not found | Invalid article ID or removed | Verify URL exists by visiting in browser |

| User ID not recognized | Wrong user ID format | Use numeric ID from profile URL or exact username |

| Empty extraction | Rate limiting or site change | Wait and retry, check for site structure changes |

| Permission denied | Working directory mismatch | Run from $HOME/eon/mt5-local directory |

| Batch too large | Too many articles requested | Limit batch size, use URL list file |

| Missing dependencies | Required tools not installed | Install curl, jq for extraction |

| Output encoding issues | Unicode in article content | Ensure UTF-8 output handling |

Post-Execution Reflection

After this skill completes, check before closing:

  1. Did the command succeed? — If not, fix the instruction or error table that caused the failure.
  2. Did parameters or output change? — If the underlying tool's interface drifted, update Usage examples and Parameters table to match.
  3. Was a workaround needed? — If you had to improvise (different flags, extra steps), update this SKILL.md so the next invocation doesn't need the same workaround.

Only update if the issue is real and reproducible — not speculative.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.