docs: add mandatory rule #6 - NEVER use CLI tools for external services #296

Closed
lmiranda wants to merge 1 commits from docs/add-cli-prohibition-rule into development
Owner

Summary

Adds explicit mandatory rule prohibiting CLI tools (gh, tea, curl to APIs) for external service interaction.

MCP tools are the ONLY allowed method.

Why This Is Needed

Claude attempted to use gh pr create despite existing instructions. The rule was buried in the document. This elevates it to the MANDATORY BEHAVIOR RULES section at the top where it cannot be ignored.

Changes

Added rule #6 to CLAUDE.md:

### 6. NEVER USE CLI TOOLS FOR EXTERNAL SERVICES
- **FORBIDDEN:** `gh`, `tea`, `curl` to APIs, any CLI that talks to Gitea/GitHub/external services
- **REQUIRED:** Use MCP tools exclusively (`mcp__plugin_projman_gitea__*`, `mcp__plugin_pr-review_gitea__*`)
- **NO EXCEPTIONS.** Don't try CLI first. Don't fall back to CLI. MCP ONLY.
- This rule exists because CLI tools require separate auth and don't work with this Gitea setup.

🤖 Generated with Claude Code

## Summary Adds explicit mandatory rule prohibiting CLI tools (`gh`, `tea`, `curl` to APIs) for external service interaction. **MCP tools are the ONLY allowed method.** ## Why This Is Needed Claude attempted to use `gh pr create` despite existing instructions. The rule was buried in the document. This elevates it to the MANDATORY BEHAVIOR RULES section at the top where it cannot be ignored. ## Changes Added rule #6 to CLAUDE.md: ```markdown ### 6. NEVER USE CLI TOOLS FOR EXTERNAL SERVICES - **FORBIDDEN:** `gh`, `tea`, `curl` to APIs, any CLI that talks to Gitea/GitHub/external services - **REQUIRED:** Use MCP tools exclusively (`mcp__plugin_projman_gitea__*`, `mcp__plugin_pr-review_gitea__*`) - **NO EXCEPTIONS.** Don't try CLI first. Don't fall back to CLI. MCP ONLY. - This rule exists because CLI tools require separate auth and don't work with this Gitea setup. ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code)
lmiranda added 1 commit 2026-01-29 02:11:53 +00:00
This rule explicitly forbids using gh, tea, curl to APIs, or any CLI
that communicates with Gitea/GitHub/external services.

MCP tools are the ONLY allowed method for external service interaction.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
lmiranda closed this pull request 2026-01-29 02:17:27 +00:00
lmiranda deleted branch docs/add-cli-prohibition-rule 2026-01-29 02:17:27 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: personal-projects/leo-claude-mktplace#296