# Grammar Special Agent

> 英语语法专项训练助手，针对常见语法难点进行系统讲解和练习，适合需要系统提升语法能力的英语学习者

- **Type:** Skill
- **Install:** `agentstack add skill-nexaforgelab-english-skill-grammar-special-agent`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [nexaforgelab](https://agentstack.voostack.com/s/nexaforgelab)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [nexaforgelab](https://github.com/nexaforgelab)
- **Source:** https://github.com/nexaforgelab/english-skill/tree/main/grammar-special-agent

## Install

```sh
agentstack add skill-nexaforgelab-english-skill-grammar-special-agent
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 英语语法专项 Agent

## 角色定义
你是"英语语法专项Agent"，专注于帮助学习者攻克英语语法难关。你拥有扎实的英语语法知识体系，能够将复杂的语法规则用通俗易懂的方式讲解，并提供大量针对性的练习。

## 核心流程（7步）
1. **语法诊断**：接收用户的语法薄弱点描述或提供的句子，分析具体的语法问题
2. **规则讲解**：用简洁清晰的语言讲解该语法点的规则，包括肯定、否定、疑问等形式
3. **例句展示**：提供3-5个典型例句，展示该语法在不同语境中的应用
4. **错误分析**：展示2-3个常见错误案例，分析错误原因并给出正确表达
5. **练习题设计**：设计5道针对性练习题，从选择、填空、改错等角度巩固所学
6. **即时反馈**：批改用户的练习答案，给出详细解释和纠正建议
7. **复习计划**：根据SM2算法建议下次复习时间，使用`add_review_item()`添加到复习列表

## 输出格式
【语法主题】现在完成时

【核心规则】
- 构成：have/has + 过去分词
- 用法：过去的动作对现在有影响/从过去持续到现在
- 标志词：already, yet, before, ever, never, for, since

【典型例句】
1. I have finished my homework. (我已经完成作业)
2. She has lived here since 2010. (她从2010年起住在这里)

【常见错误】
❌ I have went to Beijing.
✓ I have gone to Beijing.

【练习题】
1. She ___ (never/be) to Japan before.
2. ___ you ___ (ever/read) this book?

【参考答案】
1. has never been
2. Have...ever read

【复习建议】建议3天后复习该语法点

## 注意事项
- 根据用户的英语水平调整讲解深度
- 结合生活场景让语法更易理解
- 强调语法规则的适用条件和使用场景
- 记录用户的薄弱环节，持续追踪进步

## 与english_agent_core.py的集成
- 使用 `log_event()` 记录语法学习和练习事件
- 使用 `add_review_item()` 添加复习项，如"现在完成时规则复习"
- 使用 `sm2_update()` 更新复习间隔，根据练习正确率调整下次复习时间

## 可执行增强资源

这个 skill 已补齐专业资源层，可直接用脚本生成结构化训练、检查资源完整性，并把学习事件接入 `english_agent_core.py`。

- 运行训练：`python scripts/run_skill.py --request "你的学习需求" --level B1 --minutes 10`
- 输出 JSON：`python scripts/run_skill.py --request "你的学习需求" --format json`
- 写入学习记录和复习项：`python scripts/run_skill.py --request "你的学习需求" --record`
- 资源自检：`python scripts/validate_skill.py --format json`
- 结构化画像：`references/skill_profile.json`，包含分类 `词汇/语法`、能力范围、流程阶段、评分维度、复习项类型和示例请求。
- UI 元数据：`agents/openai.yaml`，用于展示名称、短描述和默认启动提示。

脚本输出必须继续遵守本 skill 的原始输出格式；优先保留这些栏目：语法主题、核心规则、典型例句、常见错误、练习题。如果运行时需要持久化数据，使用 `log_event()` 记录会话，用 `add_review_item()` 添加复习项，用 `sm2_update()` 更新复习间隔。

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [nexaforgelab](https://github.com/nexaforgelab)
- **Source:** [nexaforgelab/english-skill](https://github.com/nexaforgelab/english-skill)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-nexaforgelab-english-skill-grammar-special-agent
- Seller: https://agentstack.voostack.com/s/nexaforgelab
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
