Skip to content
Back to skills

X Api

ASecurity

Use when posting tweets, reading timelines, searching X, or tracking engagement programmatically. Triggers on \"x-api\", \"x api\", \"tweet\".

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 19, 2026
ai-agentspythongitapisecurity

Works with

  • claude code
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add majinmagros/magros.ai-skills --skill x-api --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of X Api?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for X Api
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majinmagros-x-api/badge)](https://www.skillsdirectory.com/skills/majinmagros-x-api)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: x-api
description: "Use when posting tweets, reading timelines, searching X, or tracking engagement programmatically. Triggers on \"x-api\", \"x api\", \"tweet\"."
metadata:
  origin: ECC
---

# X API

Programmatic posting, reading, search, and analytics on X (Twitter). Detalhes em `references/`.

## When to Activate

- User wants to post tweets or threads programmatically
- Reading timeline, mentions, or user data from X
- Searching X for content, trends, or conversations
- Building X integrations or bots
- Analytics and engagement tracking
- User says "post to X", "tweet", "X API", or "Twitter API"

## Core Principles

1. **Bearer for reads** — search, timelines, public data
2. **OAuth 1.0a for writes** — tweets, threads, media, DMs
3. **Read rate headers** — back off on `x-rate-limit-*`, never hardcode
4. **Secrets in env only** — never commit `.env`, rotate on exposure
5. **Draft before post** — voice profile → content-engine → approval → post

## Example

```python
resp = oauth.post("https://api.x.com/2/tweets",
    json={"text": "Hello from Claude Code"})
tweet_id = resp.json()["data"]["id"]
```

## References

- `references/auth.md` — Bearer app-only reads, OAuth 1.0a writes, env setup
- `references/operations.md` — tweet, thread, timeline, search, voice pull, user lookup, media
- `references/rate-limits-errors.md` — drift warning, header backoff, error map, security rules
- `references/content-integration.md` — brand-voice + content-engine flow, related skills

## Checklist

- [ ] Correct auth: Bearer for reads, OAuth 1.0a for writes
- [ ] Current docs verified (tiers/limits drift frequently)
- [ ] Rate-limit headers read; 429 backs off automatically
- [ ] No secrets in code or logs; `.env` gitignored
- [ ] Draft approved before posting; engagement tracked

Files in this skill

  • SKILL.md1.8 KB
  • references/auth.md1.3 KB
  • references/content-integration.md821 B
  • references/operations.md2.1 KB
  • references/rate-limits-errors.md1.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.