Jina AI
Researchjina-aiJina AI is an Agent Skill for research published in the archibate/dotfiles-opencode repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Use Jina AI APIs for converting URLs to LLM-friendly Markdown (Reader) and searching the web (Search).
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/archibate/dotfiles-opencode/blob/HEAD/skills/jina-ai/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/jina-ai, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Jina AI Skill
This skill integrates Jina AI's Reader (r.jina.ai) and Search (s.jina.ai) APIs to convert URLs and web search results into clean, LLM-friendly Markdown.
Setup
-
Dependencies: Requires
requests.pip install requests python-dotenv -
API Key Configuration (Recommended): Jina APIs offer higher limits with an API key (JINA_API_KEY).
read -p "Enter your Jina API key (optional, press Enter to skip): " JINA_KEY if [ ! -z "$JINA_KEY" ]; then echo "JINA_API_KEY=$JINA_KEY" >> .env if [ -f .gitignore ] && ! grep -q ".env" .gitignore; then echo ".env" >> .gitignore; fi echo "API key saved to .env." fi
Usage
The script scripts/jina_tools.py supports read and search operations.
1. Read URL (Jina Reader)
Convert a URL into clean Markdown.
python3 scripts/jina_tools.py read "<url>"
Example:
python3 scripts/jina_tools.py read "https://en.wikipedia.org/wiki/Large_language_model"
2. Search Web (Jina Search)
Search the web and return the top results converted to Markdown.
python3 scripts/jina_tools.py search "<query>"
Example:
python3 scripts/jina_tools.py search "What is Jina AI?"
Output
The script outputs results in JSON format, containing title, URL, and content_markdown.