Agent skill

Python Agent Engine

by kennyzir in kennyzir/7deer_skills

A production-ready Python AI Agent engine using LangChain. An agent skill from kennyzir/7deer_skills.

MITAuto-check: notesAI & LLM Engineering

Install Python Agent Engine

skills CLI
$ npx skills add kennyzir/7deer_skills --skill python-agent-engine -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install kennyzir/7deer_skills python-agent-engine --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/kennyzir/7deer_skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/python-agent-engine .claude/skills/python-agent-engine && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
python-agent-engine
GitHub stars
322
Token cost
~423 tokens
SKILL.md length
76 words
Files
3
Skills in repo
33
Repo updated
First seen
Licence
MIT

At a glance

A production-ready Python AI Agent engine using LangChain. An agent skill from kennyzir/7deer_skills.

  • Works in 3 steps: Copy resources/agent_engine.py to your… → Install dependencies → Set Environment Variables in your .env…
  • Tasks that involve Structured output and tool calling
  • SKILL.md covers Features, Installation and Usage Example
  • Runs Python scripts from its folder; calls pip; reaches api.openai.com; needs OPENAI_API_KEY

What it does

Python Agent Engine is an agent skill from kennyzir/7deer_skills. A production-ready Python AI Agent engine using LangChain. Supports ReAct pattern, tool calling, and thinking process tracking.

Its SKILL.md is about 420 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files (for example `resources/agent_engine.py`).

It sits in AI & LLM Engineering, covering Structured output and tool calling, React components and Building AI agents. It works with Python and LangChain. The repository describes itself as: Composable, auditable Agent Skills for building Roblox game sites—from opportunity and keyword research to content, SEO, updates, and backlinks. The licence is MIT.

When your agent uses it

  • Tasks that involve Structured output and tool calling
  • Tasks that involve React components
  • Tasks that involve Building AI agents

Example prompts

  • “/python-agent-engine”

Requirements

  • Python 3
  • A credential in OPENAI_API_KEY

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Copy resources/agent_engine.py to your project (e.g., src/core/agent_engine.py).
  2. Install dependencies
  3. Set Environment Variables in your .env file

What it can do on your machine

Read from SKILL.md and the folder at commit 32a6881. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.openai.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • OPENAI_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Python Agent Engine loads about 423 tokens when it runs. Until then it costs about 37 tokens; SKILL.md has 76 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~37
When it runs · the whole SKILL.md, loaded when a task matches
~423

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:22
    3. Set Environment Variables in your `.env` file:

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from kennyzir/7deer_skills at commit 32a6881, republished under its MIT licence (© kennyzir). 76 words, ~423 tokens.

Download SKILL.mdSave it as .claude/skills/python-agent-engine/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
python-agent-engine
description
A production-ready Python AI Agent engine using LangChain. Supports ReAct pattern, tool calling, and thinking process tracking.

Python Agent Engine

A plug-and-play AI Agent core for Python applications. It handles the complexity of LLM interaction, tool calling loops, and context management.

Features

  • ReAct Loop: Automatically handles "Reasoning -> Tool Call -> Result -> Answer" process.
  • Thinking Process: Returns structured "Thinking Steps" for UI visualization.
  • Model Agnostic: Works with OpenAI, DeepSeek, or any OpenAI-compatible API.

Installation

  1. Copy resources/agent_engine.py to your project (e.g., src/core/agent_engine.py).
  2. Install dependencies:
    bash
    pip install langchain-core langchain-openai python-dotenv
  3. Set Environment Variables in your .env file:
    ini
    OPENAI_API_KEY=sk-...
    # Optional:
    OPENAI_BASE_URL=https://api.openai.com/v1

Usage Example

python
import asyncio
from langchain_core.tools import tool
from core.agent_engine import AgentEngine

# 1. Define Tools
@tool
def calculator(expression: str) -> str:
    """Calculates a math expression."""
    return str(eval(expression))

# 2. Initialize Agent
agent = AgentEngine(
    tools=[calculator],
    system_prompt="You are a helpful math assistant.",
    model_name="gpt-4o"
)

# 3. Chat
async def main():
    response = await agent.chat("What is 123 * 456?")
    
    print(f"Answer: {response.content}")
    print("\nThinking Steps:")
    for step in response.thinking_steps:
        print(f"[{step.type}] {step.content}")

if __name__ == "__main__":
    asyncio.run(main())

© kennyzir, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files in python-agent-engine of kennyzir/7deer_skills.

  • SKILL.md
  • resources/agent_engine.py
  • resources/requirements.txt

Open the folder on GitHubat commit 32a6881

Compare with similar skills

Python Agent Engine next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Python Agent Engine compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Python Agent Engine this skillkennyzir/7deer_skills322—~423Automated safety check: NotesMIT
LangGraph Decision Modelslangchain-ai/langchain-skills1.3k—~2.3kAutomated safety check: PassMIT
Tool Designagentailor/fullstack-langgraph-nextjs-agent132—~3.2kAutomated safety check: PassMIT
Langchain Middlewarelangchain-ai/langchain-skills1.3k1 repos~2.7kAutomated safety check: PassMIT
Pixeltablehashgraph-online/awesome-codex-plugins1.2k—~3.3kAutomated safety check: PassApache-2.0
Routerbase API Integrationaiskillstore/marketplace430—~964Automated safety check: PassNone

Similar skills

  • LangGraph Decision Models

    langchain-ai/langchain-skills

    Official

    Routes LangGraph agents with typed decision models that return probabilities, and finds LLM calls that only exist to produce a routing decision.

    1.3k GitHub stars~2.3k tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed
  • Tool Design

    agentailor/fullstack-langgraph-nextjs-agent

    Design and verify tools that AI agents can actually use — for any framework or language (MCP servers, LangChain/LangGraph, function-calling, raw JSON schema; TypeScript, Python, or otherwise).

    132 GitHub stars~3.2k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • Langchain Middleware

    langchain-ai/langchain-skills

    Official

    INVOKE THIS SKILL when you need human-in-the-loop approval, custom middleware, or structured output.

    1.3k GitHub starsUsed in 1 repo~2.7k tokens
    AI & LLM EngineeringAuto-check passed
  • Pixeltable

    hashgraph-online/awesome-codex-plugins

    Build multimodal AI apps with Pixeltable. An agent skill from hashgraph-online/awesome-codex-plugins.

    1.2k GitHub stars~3.3k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Routerbase API Integration

    aiskillstore/marketplace

    Integrate applications with RouterBase, the OpenAI-compatible model gateway at https://routerbase.com/v1.

    430 GitHub stars~964 tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • AI SDK

    vercel-labs/ai-facts

    Official

    Answer questions about the AI SDK and help build AI-powered features.

    168 GitHub starsUsed in 21 repos~1.2k tokens
    AI & LLM EngineeringAuto-check passed

More from kennyzir/7deer_skills

All 33 skills in this repo
  • Roblox Homepage Ranking Auditor

    kennyzir/7deer_skills

    Audit a Roblox or game-site homepage against the RB Auto Golden Homepage model.

    322 GitHub stars~3.8k tokensUpdated 8 days ago
    Auto-check passed
  • Roblox Site Architect

    kennyzir/7deer_skills

    Orchestrate an evidence-backed seven-stage Roblox site growth pipeline from opportunity assessment through keyword research, source collection, site planning, SEO QA, freshness, and growth.

    322 GitHub stars~3.6k tokensUpdated 8 days ago
    Auto-check passed
  • Youtube Transcribe

    kennyzir/7deer_skills

    YouTube video transcription and memory workflow. An agent skill from kennyzir/7deer_skills.

    322 GitHub stars~1.7k tokensUpdated 8 days ago
    Auto-check passed
  • X Demand Radar

    kennyzir/7deer_skills

    AI 热点雷达 - 在新 AI 工具/关键词爆火前发现它们,抢注域名、建站套利. An agent skill from kennyzir/7deer_skills.

    322 GitHub starsUsed in 1 repo~3.6k tokens
    Auto-check passed
  • SEO Link Strategy

    kennyzir/7deer_skills

    Research backlink opportunities, record contact evidence, and generate personalized local outreach drafts from user-provided product and contact data.

    322 GitHub stars~1.4k tokensUpdated 8 days ago
    Auto-check passed
  • Html5 Game Radar

    kennyzir/7deer_skills

    HTML5 游戏发现雷达 - 多源监测又新又热的 HTML5 游戏,识别 SEO 套利窗口. An agent skill from kennyzir/7deer_skills.

    322 GitHub stars~1.4k tokensUpdated 8 days ago
    Auto-check passed

Works with

Questions about Python Agent Engine

What does Python Agent Engine do?

A production-ready Python AI Agent engine using LangChain. An agent skill from kennyzir/7deer_skills. Python Agent Engine is an agent skill from kennyzir/7deer_skills. A production-ready Python AI Agent engine using LangChain.

When should I use Python Agent Engine?

Python Agent Engine fits situations like: tasks that involve Structured output and tool calling; tasks that involve React components; tasks that involve Building AI agents.

How do I install Python Agent Engine in Claude Code?

Run `npx skills add kennyzir/7deer_skills --skill python-agent-engine -a claude-code`. Or copy the skill folder (python-agent-engine in kennyzir/7deer_skills) into .claude/skills/python-agent-engine in your project. Claude Code loads it when a task matches its description.

How do I install Python Agent Engine in Codex?

Run `npx skills add kennyzir/7deer_skills --skill python-agent-engine -a codex`. Or copy the skill folder (python-agent-engine in kennyzir/7deer_skills) into .agents/skills/python-agent-engine in your project. Codex loads it when a task matches its description.

Can I use Python Agent Engine in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add kennyzir/7deer_skills --skill python-agent-engine -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/python-agent-engine, .gemini/skills/python-agent-engine, .github/skills/python-agent-engine and .opencode/skills/python-agent-engine in your project.

What does Python Agent Engine need to run?

Going by SKILL.md and its folder, Python Agent Engine needs Python for the scripts in its folder, the command-line tools its instructions call (pip) and credentials named OPENAI_API_KEY. Our summary lists: Python 3; A credential in OPENAI_API_KEY.

Does Python Agent Engine access the network?

SKILL.md names 1 domain. In commands or code: api.openai.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Python Agent Engine safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Python Agent Engine use?

Python Agent Engine is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Python Agent Engine use?

About 423 tokens (SKILL.md is roughly 1.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Python Agent Engine?

Skills that share tags, products or a category with Python Agent Engine: LangGraph Decision Models (langchain-ai/langchain-skills, 1.3k stars), Tool Design (agentailor/fullstack-langgraph-nextjs-agent, 132 stars), Langchain Middleware (langchain-ai/langchain-skills, 1.3k stars) and Pixeltable (hashgraph-online/awesome-codex-plugins, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Python Agent Engine?

kennyzir (a GitHub user) maintains it in kennyzir/7deer_skills, which has 322 GitHub stars. The repository holds 33 skills in this directory. The repository was last updated on September 29, 2026.

Source: kennyzir/7deer_skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.