docs(agent): add rules and skills
This commit is contained in:
23
.agent/skills/git-sync/SKILL.md
Normal file
23
.agent/skills/git-sync/SKILL.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# Git Sync Skill
|
||||
|
||||
## Description
|
||||
This skill allows the agent to check the remote Git repository for updates. It automatically pulls changes if a new version is available on the remote server.
|
||||
|
||||
## Triggers
|
||||
Activate this skill when the user asks:
|
||||
- "Проверь обновления" (Check for updates)
|
||||
- "Загрузи новую версию" (Download new version)
|
||||
- "Синхронизируй с гитом" (Sync with git)
|
||||
- "Есть ли изменения?" (Are there changes?)
|
||||
|
||||
## Execution
|
||||
To run this skill, execute the bash script:
|
||||
|
||||
```bash
|
||||
/bin/bash .agent/skills/git-sync/scripts/check_and_pull.sh
|
||||
```
|
||||
|
||||
## Response Guidelines
|
||||
1. **Success**: If the script says "Successfully updated", inform the user the project is now on the latest version.
|
||||
2. **No Updates**: If the script says "Up-to-date", tell the user no changes were found.
|
||||
3. **Error**: If the script fails or reports conflicts, ask the user to check git status manually.
|
||||
Reference in New Issue
Block a user