agent-data-cli is a local information center for multi-source content.
This skill is for discovering sources, searching channels, subscribing, syncing remote content, querying the local database, and running explicit interactions against news, RSS, social media, and financial data sources.
Use it for:
source/channel/content modelThis skill is operational, not explanatory. When the user's goal is clear, execute the CLI flow directly instead of only suggesting commands.
Use this skill when the user wants to:
Do not use this skill for:
agent-data-cli modelInstall this skill directly from skills.sh:
npx skills add https://github.com/severinzhong/agent-data-cli --skill using-data-cli
If agent-data-cli is not present locally, install it first:
git clone https://github.com/severinzhong/agent-data-cli
cd agent-data-cli
uv sync
Then:
skills/ directory.pyproject.toml, cli/, and store/.source_workspace as external configuration. The default path is ./sources, and it is typically backed by the separate agent-data-hub workspace.Always prefer:
uv run -m adc ...
content query into a remote search.content interact, require an explicit source and explicit refs.Read references/command-semantics.md before using a command family you have not touched in the current session.
Read references/task-patterns.md when the user request is ambiguous and needs stable intent-to-command mapping.
Read references/result-reporting.md before reporting back after a multi-step run.
proxy_url uses one field with three states:
http://127.0.0.1:7890: force that proxydirect: force direct connection and break CLI-level proxy inheritanceWhen one source needs its own proxy behavior, configure it explicitly:
uv run -m adc config source set <source> proxy_url http://127.0.0.1:7890
uv run -m adc config source set <source> proxy_url direct
If multiple sources should share one proxy, set the CLI-level default:
uv run -m adc config cli set proxy_url http://127.0.0.1:7890
uv run -m adc config cli unset proxy_url
If a source needs to bypass an inherited CLI proxy, set that source to direct.
Inspect current source config:
uv run -m adc config source list <source>
source_workspaceCore only loads sources that exist in the current workspace.
uv run -m adc config cli explain source_workspace
uv run -m adc config cli set source_workspace ./sources
uv run -m adc config cli set source_workspace /abs/path/to/agent-data-hub
If the workspace contains data_hub, use it to discover, install, or uninstall official sources:
uv run -m adc content search --source data_hub --channel official --query xiaohongshu
uv run -m adc content interact --source data_hub --verb install --ref data_hub:content/xiaohongshu
uv run -m adc content interact --source data_hub --verb uninstall --ref data_hub:content/xiaohongshu
cronUse a system scheduler when you want periodic local syncs. Keep the repo path explicit and append logs so the run can be inspected later:
30 8 * * * cd /abs/path/to/agent-data-cli && /abs/path/to/uv run -m adc content update --source bbc >> /abs/path/to/agent-data-cli/update.log 2>&1
If you need tighter OS integration, the same pattern can also be implemented with launchd or systemd.
--jsonl with jq or awkFor machine filtering, prefer --jsonl and pipe to shell tools:
uv run -m adc content query --source cryptocompare --channel BTC --limit 30 --jsonl | jq '.title'
uv run -m adc content query --source cryptocompare --channel BTC --limit 30 --jsonl | jq 'select(.channel=="BTC")'
uv run -m adc content query --source cryptocompare --channel BTC --limit 30 --jsonl | awk -F'"' '/"channel": "BTC"/ {print $0}'
uv run -m adc content query --source xiaohongshu --children xiaohongshu:content/note%3A123 --depth -1 --jsonl | jq '.relation_depth'
The same pattern works for remote discovery:
uv run -m adc channel search --source cryptocompare --query BTC --limit 5 --jsonl | jq '.channel_key'
> and >>Use > to overwrite a file and >> to append:
uv run -m adc content query --source cryptocompare --channel BTC --limit 100 --jsonl > btc.jsonl
uv run -m adc content query --source cryptocompare --channel ETH --limit 100 --jsonl >> btc.jsonl
uv run -m adc channel search --source cryptocompare --query BTC --limit 20 --jsonl > channels.jsonl
This is useful when you want to:
jq, awk, or other CLI toolschannel search is remote channel discovery only.content search is remote content discovery only and does not write to the database.content update is the only remote sync path that writes to the database.content query is local-only and never triggers remote work.content interact is explicit remote side effect execution only.uv pip install or source-local init.sh, not uv addIf a task does not fit these boundaries, say so directly instead of approximating.
共 2 个版本