Логотип Data Machine

Data Machine

Организация
Sarai-Chinwag
data-machine

Self-scheduling execution layer for autonomous task orchestration. Use for queuing tasks, chaining pipeline executions, scheduling recurring work, and 24/7 autonomous operation via Agent Ping webhooks.

Обзор

ИздательSarai-Chinwag
Репозиторийwp-openclaw
Название навыкаdata-machine
Звёзды
64
Форки
6
Файлы в комплекте
Только инструкции
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

    Всё необходимое для модели содержится в инструкциях — никаких дополнительных файлов для синхронизации.

  • Открытый исходный код

    Издатель навыка на GitHub — Sarai-Chinwag. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Data Machine в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/Sarai-Chinwag/wp-openclaw/tree/main/skills/data-machine
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Sarai-Chinwag/wp-openclaw.git /tmp/wp-openclaw
mkdir -p .claude/skills
cp -r /tmp/wp-openclaw/skills/data-machine .claude/skills/data-machine
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Data Machine в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Data Machine, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Data Machine не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Data Machine Skill

A self-scheduling execution layer for AI agents. Not just content automation — it's how agents schedule themselves to achieve goals autonomously.

When to Use This Skill

Use this skill when:

  • Setting up automated workflows (content generation, publishing, notifications)
  • Creating self-scheduling patterns (reminders, recurring tasks)
  • Building multi-phase projects with queued task progression
  • Configuring Agent Ping webhooks to trigger external agents

Core Philosophy

Data Machine is designed with AI agents as primary users. It functions as a reminder system + task manager + workflow executor all in one.

Three Key Concepts

  1. Flows operate on schedules — Configure "ping me at X time to do Y"
  2. Step-level prompt queues — Each ping can be a different task instruction
  3. Multiple purpose-specific flows — Separate flows for separate concerns

Mental Model

RoleHow It Works
Reminder SystemFlows run on schedules (daily, hourly, cron) and ping the agent
Task ManagerQueues hold task backlog; each run pops the next task
Workflow ExecutorPipeline steps execute work (AI generation, publishing, API calls)

Architecture Overview

Execution Model

Pipeline (template) → Flow (instance) → Job (execution)
  • Pipeline: Reusable workflow template with steps
  • Flow: Instance of a pipeline with specific configuration and schedule
  • Job: Single execution of a flow

Step Types

TypePurposeHas Queue
fetchImport data (RSS, Sheets, Files, Reddit)No
aiProcess with AI (multi-turn, tools)Yes
publishOutput (WordPress, Twitter, Discord)No
updateModify existing contentNo
agent_pingWebhook to external agentsYes

Scheduling Options

Configure via scheduling_config in the flow:

IntervalBehavior
manualOnly runs when triggered via UI or CLI
dailyRuns once per day
hourlyRuns once per hour
{"cron": "0 9 * * 1"}Cron expression (e.g., Mondays at 9am)

Working with Flows

List Flows

bash
wp datamachine flows list

Get Flow Details

bash
wp datamachine flows get <flow_id>

Run a Flow Manually

bash
wp datamachine flows run <flow_id>

Check Job Status

bash
wp datamachine jobs list --limit=10

Prompt Queues

Both AI and Agent Ping steps support queues via QueueableTrait. If the configured prompt is empty and queue_enabled is true, the step pops from its queue.

This enables varied task instructions per execution — not the same prompt every time.

Queue Management

bash
# Add to queue
wp datamachine flows queue add <flow_id> "Task instruction here"

# List queue contents
wp datamachine flows queue list <flow_id>

# Clear queue
wp datamachine flows queue clear <flow_id>

Chaining Pattern

When an agent receives a ping, it should:

  1. Execute the immediate task
  2. Queue the next logical task (if continuation needed)
  3. Let the cycle continue
Ping: "Phase 1: Design the architecture"
  → Agent designs, writes DESIGN.md
  → Agent queues: "Phase 2: Implement schema per DESIGN.md"
  
Ping: "Phase 2: Implement schema per DESIGN.md"  
  → Agent implements
  → Agent queues: "Phase 3: Build API endpoints"

The queue becomes the agent's persistent project memory — multi-phase work is tracked in the queue, not held in context.


Purpose-Specific Flows

Critical pattern: Don't try to do everything in one flow. Create separate flows for separate concerns:

Flow: Content Generation (queue-driven)
  → AI Step (pops topic from queue) → Publish → Agent Ping

Flow: Content Ideation (daily)  
  → Agent Ping: "Review analytics, add topics to content queue"

Flow: Weekly Review (cron: Monday 9am)
  → Agent Ping: "Analyze last week's performance"

Flow: Coding Tasks (manual, queue-driven)
  → Agent Ping (pops from queue): specific coding task instructions

Each flow has its own:

  • Schedule: When it runs
  • Queue: Task backlog specific to that workflow
  • Purpose: Single responsibility, clear scope

Agent Ping Configuration

Agent Ping steps send webhooks to external agent frameworks (OpenClaw, LangChain, custom handlers).

Handler Configuration

  • webhook_url: Where to send the ping
  • prompt: Static prompt, or leave empty to use queue
  • queue_enabled: Whether to pop from queue when prompt is empty

Webhook Payload

The ping includes:

  • Flow and job context
  • The prompt (from config or queue)
  • Any data from previous steps

Note: Data Machine is agent-agnostic. It sends webhooks — whatever listens on the URL handles the prompt.


Taxonomy Handling (Publishing)

When publishing WordPress content, taxonomies can be handled three ways:

SelectionBehavior
skipDon't assign this taxonomy
ai_decidesAI provides values via tool parameters
<term_id|name|slug>Pre-select specific term

AI Decides Mode

When ai_decides is set:

  1. TaxonomyHandler generates a tool parameter for that taxonomy
  2. AI provides term names in its tool call
  3. Handler assigns terms (creating if needed)
  • Hierarchical taxonomies (category): expects single string
  • Non-hierarchical (tags): expects array of strings

Best Practice: AI taxonomy selection works for simple cases. For complex categorization, use skip and assign programmatically after publish.


Key AI Tools

skip_item

Allows AI to skip items that shouldn't be processed:

Before generating content:
1. Search for similar existing posts
2. If duplicate found, use skip_item("duplicate of [existing URL]")

The tool marks the item as processed and sets job status to agent_skipped.

local_search

Search site content for duplicate detection:

bash
# Search by title
local_search(query="topic name", title_only=true)

Tip: Search for core topic, not exact title. "pelicans dangerous" catches "Are Australian Pelicans Dangerous?"


CLI Reference

Note: If running WP-CLI as root, add --allow-root to commands.

bash
# Settings
wp datamachine settings list
wp datamachine settings get <key>
wp datamachine settings set <key> <value>

# Flows
wp datamachine flows list
wp datamachine flows get <flow_id>
wp datamachine flows run <flow_id>

# Queues
wp datamachine flows queue add <flow_id> "prompt"
wp datamachine flows queue list <flow_id>
wp datamachine flows queue clear <flow_id>

# Jobs
wp datamachine jobs list [--status=<status>] [--limit=<n>]
wp datamachine jobs get <job_id>

Debugging

Check Logs

bash
tail -f wp-content/uploads/datamachine-logs/datamachine-pipeline.log

Failed Jobs

bash
wp datamachine jobs list --status=failed

Scheduled Actions

bash
# List pending actions
wp action-scheduler run --hooks=datamachine --force

# Check cron
wp cron event list

Common Patterns

Self-Improving Content Pipeline

1. Fetch topics (RSS, manual queue, or AI ideation)
2. AI generates content with local_search to avoid duplicates
3. Publish to WordPress
4. Agent Ping to notify agent for image addition / promotion

Autonomous Maintenance

Daily Flow:
  → Agent Ping: "Check for failed jobs, investigate issues"

Weekly Flow:
  → Agent Ping: "Review analytics, identify optimization opportunities"

Multi-Phase Project Execution

Queue tasks in sequence:
  "Phase 1: Research and planning"
  "Phase 2: Implementation"
  "Phase 3: Testing"
  "Phase 4: Documentation"

Flow runs daily, pops next phase, agent executes and queues follow-up if needed.

Code Locations

For contributors working on Data Machine itself:

  • Steps: inc/Core/Steps/
  • Abilities: inc/Abilities/
  • CLI: inc/Cli/
  • Taxonomy Handler: inc/Core/WordPress/TaxonomyHandler.php
  • Queueable Trait: inc/Core/Steps/QueueableTrait.php
  • React UI: inc/Core/Admin/Pages/Pipelines/assets/react/


Development Status & Contributing

Data Machine is in active development. It works well (Sarai uses it daily), but it's not yet available on WordPress.org — no auto-updates.

Installation Source

Data Machine is installed from GitHub:

https://github.com/Extra-Chill/data-machine

Updating

To get the latest version:

bash
cd /path/to/wp-content/plugins/data-machine
git pull origin main

Check for breaking changes in the CHANGELOG before updating production sites.

Reporting Issues

If you encounter bugs or unexpected behavior:

  1. Check existing issues: https://github.com/Extra-Chill/data-machine/issues
  2. Open a new issue with:
    • What you were trying to do
    • What happened instead
    • Steps to reproduce
    • Relevant logs (wp-content/uploads/datamachine-logs/)

Agents filing clear, detailed issues are incredibly helpful for development.

Contributing

PRs are welcome! If you've fixed a bug or added a feature:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes (follow existing code patterns)
  4. Submit a PR with clear description

For agents: If you hit a limitation or bug, consider fixing it and submitting a PR rather than working around it. Permanent fixes beat workarounds.

Expectations

  • Features may change between versions
  • Some edges cases may not be handled yet
  • The maintainer (Extra Chill) is responsive to issues
  • This is production-ready but evolving

This skill teaches AI agents how to use Data Machine for autonomous operation. For contributing to Data Machine development, see AGENTS.md in the repository root.

Часто задаваемые вопросы

Что делает навык ИИ Data Machine?

Self-scheduling execution layer for autonomous task orchestration. Use for queuing tasks, chaining pipeline executions, scheduling recurring work, and 24/7 autonomous operation via Agent Ping webhooks.

Зачем использовать Data Machine в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Data Machine — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Data Machine в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/Sarai-Chinwag/wp-openclaw/tree/main/skills/data-machine. TypingMind прочитает файл SKILL.md и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Data Machine?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Data Machine?

С любым количеством. В TypingMind вы можете использовать Data Machine с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Data Machine?

Да. Навык опубликован на GitHub по лицензии MIT. Издатель — Sarai-Chinwag. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇