---
name: ct-alpha-90f5804868fb
description: >
  Crypto Twitter intelligence and alpha research. Search X/Twitter for real-time crypto narratives,
  trending tokens, yield strategies, smart money signals, and protocol research. Features TweetRank
  (PageRank-inspired credibility scoring), multi-signal token detection, coordinated raid detection,
  and dynamic tool discovery for execution suggestions. Solana-first but covers all major chains.
creator: yashhsm
version: "1.0.0"
tags: [crypto-twitter, alpha, research, trending, tweetrank, solana, defi, sentiment, x-api, trading]
metadata:
  author: yashhsm
  runtime: bun
  api: X API v2 (pay-per-use)
---

# CT Alpha — Crypto Twitter Intelligence

Turn X/Twitter into an actionable crypto intelligence layer. Search CT for narratives, alpha, strategies, and sentiment, then rank results using TweetRank (a PageRank-inspired credibility scoring system), extract tokens/CAs from multiple signals, detect coordinated raids, and suggest execution steps using available tools.

## Overview

- **Search**: Query CT with crypto-optimized noise filters and relevancy sorting
- **TweetRank**: Score tweets by author credibility + engagement quality + recency
- **Multi-Signal Token Detection**: Cashtags, name-phrases, crypto URLs, contract addresses
- **Raid Detection**: Flag tickers promoted mostly by low-credibility accounts
- **Trending**: Detect trending tokens across multiple search queries
- **Watchlist**: Monitor trusted CT accounts by category
- **Thread Hydration**: Fetch full conversation threads
- **X Articles**: Full-text extraction of long-form posts (>280 chars)
- **Cost Tracking**: Per-session API spend tracking (~$0.005/tweet)
- **Dynamic Tool Discovery**: Suggest follow-up actions with DeFi Llama, Backpack, Polymarket, etc.

## Prerequisites

- **Runtime**: [Bun](https://bun.sh) (TypeScript runtime)
- **API Token**: X API Bearer Token from [developer.x.com](https://developer.x.com) (pay-per-use via xAI)
- **Cost**: ~$0.005 per tweet read, ~$0.10 per quick search (20 tweets)

## Quick Start

### Installation

```bash
# Clone the skill
git clone https://github.com/yashhsm/skills.git
cd skills/skills/ct-alpha

# Run the installer (configures token, watchlist, cache)
bun run install.ts
```

### Environment Setup

```bash
# Set your X API Bearer Token
export X_BEARER_TOKEN="your_token_here"

# Or save to persistent env file
mkdir -p ~/.config/env
echo 'export X_BEARER_TOKEN="your_token_here"' >> ~/.config/env/global.env
source ~/.config/env/global.env
```

### Basic Usage

```bash
# Search for alpha on a token
bun run ct-search.ts search "$SOL alpha" --quick

# Detect trending tokens
bun run ct-search.ts trending --window 6h --solana-only

# Monitor watchlist accounts
bun run ct-search.ts watchlist --since 24h

# Read a specific tweet or article
bun run ct-search.ts read https://x.com/user/status/123456

# Check API spending
bun run ct-search.ts cost
```

## CLI Reference

### search — Core research command

```bash
bun run ct-search.ts search "<query>" [flags]
```

| Flag | Description | Default |
|------|-------------|---------|
| `--quick` | 20 tweets, 1hr cache, ~$0.10 | **Default mode** |
| `--full` | Up to 100 tweets, 15min cache, ~$0.50 | Confirm cost first |
| `--limit N` | Max total tweets | 20 (quick), 100 (full) |
| `--sort <field>` | `likes`, `recency`, `relevancy` | `relevancy` |
| `--since <duration>` | `1h`, `6h`, `24h`, `7d` | `24h` |
| `--min-likes N` | Engagement filter | 3 (quick) |
| `--from user1,user2` | Restrict to specific accounts | — |
| `--extract-tickers` | Show extracted tickers | — |
| `--extract-cas` | Show contract addresses and crypto URLs | — |
| `--raw` | JSON output | — |

### trending — Multi-signal trending detection

```bash
bun run ct-search.ts trending [flags]
```

| Flag | Description | Default |
|------|-------------|---------|
| `--window <duration>` | `1h`, `6h`, `24h` | `6h` |
| `--min-mentions N` | Minimum mention count | 3 |
| `--solana-only` | Solana ecosystem only | — |
| `--top N` | Top N results | 20 |

### watchlist — Monitor CT accounts

```bash
bun run ct-search.ts watchlist [flags]
```

| Flag | Description | Default |
|------|-------------|---------|
| `--category <cat>` | Filter by category | all |
| `--since <duration>` | Time window | `24h` |

### read — Read a specific tweet/article

```bash
bun run ct-search.ts read <tweet_url_or_id> [--thread] [--raw]
```

Accepts x.com URLs, twitter.com URLs, or raw tweet IDs. Articles (long-form posts) are fetched in full.

### thread — Hydrate conversation thread

```bash
bun run ct-search.ts thread <tweet_id>
```

### cost — Track API spending

```bash
bun run ct-search.ts cost [--reset]
```

## Core Features

### TweetRank Scoring

Every tweet is scored by three factors multiplied together:

1. **AuthorCred (0-10)**: Watchlist membership (+5), follower/following ratio (capped +5), verification (+1), account age (log scale, capped +2), bot penalty (-3)
2. **EngagementQuality**: Bookmarks (×3, unfakeable) > Quotes (×2.5, high effort) > Likes (×1.5) > Retweets (×1, easily botted). All log-scaled.
3. **RecencyBoost**: `1 / (1 + hoursAgo / 24)` — newer tweets score higher.

```
TweetRank = AuthorCred × EngagementQuality × RecencyBoost
```

Each tweet receives a source label:
- `[WATCHLIST]` — Author is on your watchlist (highest trust)
- `[HIGH-CRED]` — AuthorCred ≥ 5
- `[UNKNOWN]` — Unverified author
- `[SUSPICIOUS]` — Bot-like patterns detected

### Multi-Signal Token Detection

Cashtag-only detection misses how tokens actually spread on CT. This extracts from four signal types:

| Signal | Example | Confidence |
|--------|---------|------------|
| **Cashtag** | `$SOL`, `$JTO` | High |
| **Name-phrase** | "pendle" + crypto context | High/Medium |
| **Crypto URL** | pump.fun, dexscreener, birdeye, jup.ag | High |
| **Contract Address** | Base58 (Solana) / 0x (Ethereum) with context | High/Low |

Supported crypto URL domains: pump.fun, dexscreener.com, birdeye.so, jup.ag, raydium.io, solscan.io, etherscan.io.

### Raid Detection

Detects coordinated pump campaigns by analyzing author credibility distribution per ticker:

- If >70% of authors mentioning a ticker have low credibility (AuthorCred < 3), it's flagged as a potential raid
- Output includes raid score, total/low-cred author counts

### Noise Filtering

Every search auto-appends crypto noise filters:
- `-is:retweet` (removes retweets)
- `-"airdrop"`, `-"giveaway"`, `-"whitelist"` (spam removal)
- `-"follow and RT"`, `-"follow & RT"`, `-"free mint"`, `-"dm to claim"` (engagement bait)
- Quick mode also adds `-is:reply`

### Caching

Aggressive caching prevents redundant API calls:

| Cache Type | TTL | Use Case |
|------------|-----|----------|
| Quick search | 1 hour | Default searches |
| Full search | 15 minutes | Deep dives |
| Thread | 2 hours | Conversation threads |
| Profile | 24 hours | User lookups |
| Watchlist | 4 hours | Account monitoring |

Cache is file-based (JSON) with auto-pruning on startup (24h hard limit).

## Research Methodology

Follow this 6-step loop for every research request:

### 1. Decompose
Break the user's question into 1-3 targeted search queries.
- Token research: search both `$TICKER` and plain name with OR
- Narratives: search thematic keywords, not just token names
- Strategies: include strategy/yield/APY keywords

### 2. Pre-Filter
Before any API call:
- Check cache (same query within TTL is free)
- Noise filters are automatic
- Estimate cost: Quick ~$0.10, Full ~$0.50-1.50
- Narrow time window: 24h for trending, 7d for research

### 3. Search
Execute with `--quick` mode first (always):
```bash
bun run ct-search.ts search "$TOKEN alpha" --quick --extract-tickers
```

### 4. Extract
Analyze TweetRank scores and trust labels. Look for extracted tickers, contract addresses, and crypto URLs.

### 5. Deep-Dive (if needed)
- Follow high-engagement threads: `bun run ct-search.ts thread <id>`
- Search specific authors: `--from author1,author2`
- Broaden with `--full` only if quick was insufficient

### 6. Synthesize
Combine findings into actionable intelligence:
- Group by theme, not by query
- Highlight tickers with strong multi-signal detection
- Flag raid risks
- Suggest verification and execution steps

## Query String Rules

The query argument supports X API v2 operators:

| Operator | Example | Description |
|----------|---------|-------------|
| keyword | `solana alpha` | Both words |
| `"exact"` | `"yield strategy"` | Exact phrase |
| `OR` | `$SOL OR solana` | Either term |
| `-` | `-airdrop` | Exclude term |
| `from:` | `from:username` | Tweets by user |
| `has:links` | `has:links` | Tweets with URLs |
| `lang:` | `lang:en` | Language filter |
| `$` | `$SOL` | Cashtag |

**Do NOT use these v1.1 operators** (they cause 400 errors on v2 pay-per-use):
- `min_faves:N`, `min_retweets:N` — use `--min-likes` CLI flag instead
- `place:`, `bio:`, `sample:` — not available on v2

**Do NOT manually include noise filters** in the query — the CLI auto-appends them.

## Dynamic Tool Discovery

After completing research, suggest execution steps using available MCP tools:

| Tool Prefix | Use Case | Example |
|-------------|----------|---------|
| `mcp__defillama__*` | TVL, yields, fees, prices | `get_protocol_tvl("pendle")` |
| `mcp__backpack__*` | Exchange price, depth, trades | `backpack_get_ticker("SOL_USDC")` |
| `mcp__polymarket__*` | Prediction markets | `search_polymarket("solana ETF")` |
| `mcp__coingecko__*` | Token data, market charts | `get_id_coins("solana")` |

Always frame suggestions as "verify" not "confirm" — encourage skepticism about CT alpha.

## Cost Protocol

1. **Always `--quick` first** (~$0.10 for 20 tweets). Relevancy sort = best results come first.
2. Only increase `--limit` if 20 results are genuinely insufficient.
3. Display cost estimate before `--full` mode.
4. Cache is aggressive — same query within TTL is free.
5. **Two-pass strategy**: First search 20 results. If more depth needed on a sub-topic, do a targeted follow-up rather than re-running with higher limits.

## Best Practices

- **Start narrow, broaden only if needed**: Specific ticker + context words first
- **Use `--from` for signal**: Restrict to watchlist accounts for highest signal-to-noise
- **Use `has:links` for substance**: Analytical content, not hot takes
- **Never present CT findings as authoritative**: Always include confidence levels and risk bullets
- **Contract addresses are always UNVERIFIED**: Verify on-chain before interacting
- **Two-pass research**: Quick search first, then targeted deep-dives
- **Track spending**: Use `cost` command to monitor API usage

## Security Considerations

- X Bearer Token is stored in `~/.config/env/global.env` — ensure proper file permissions
- Never commit tokens to version control
- Contract addresses extracted from tweets are ALWAYS unverified — always verify on-chain
- Watchlist data is local-only (not synced or shared)
- Cache files contain tweet data — consider cleanup for sensitive research

## Skill Structure

```
ct-alpha/
├── SKILL.md                    # This file — agent instructions
├── ct-search.ts                # Main CLI entry point
├── setup.ts                    # Interactive setup script
├── install.ts                  # Full installer
├── lib/
│   ├── api.ts                  # X API v2 integration, pagination, caching
│   ├── extract.ts              # Multi-signal token extraction
│   ├── tweetrank.ts            # TweetRank scoring and raid detection
│   ├── format.ts               # Output formatting with trust labels
│   ├── cache.ts                # File-based caching layer
│   ├── cost.ts                 # API cost tracking
│   └── filters.ts              # Noise filtering, engagement filtering
├── resources/
│   ├── x-api.md                # X API v2 reference
│   ├── query-templates.md      # Pre-built search patterns
│   └── tool-discovery.md       # Dynamic tool suggestion map
├── data/
│   ├── known-tokens.json       # Token name → ticker mappings
│   └── watchlist.default.json  # Default watchlist categories
└── examples/
    └── basic-search.ts         # Quick start example
```

## Resources

- [X API v2 Documentation](https://developer.x.com/en/docs/twitter-api)
- [Bun Runtime](https://bun.sh)
- [SendAI Skills Repository](https://github.com/sendaifun/skills)


---
Source attribution: dattb-birdeye
Original project: https://github.com/dattb-birdeye/skills/blob/d008eac5e9b05ce18b6b193d3df05fd0b93653a0/skills/ct-alpha/SKILL.md
License: Apache-2.0
License information: https://www.apache.org/licenses/LICENSE-2.0
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to the Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding those notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

   END OF TERMS AND CONDITIONS

   APPENDIX: How to apply the Apache License to your work.

      To apply the Apache License to your work, attach the following
      boilerplate notice, with the fields enclosed by brackets "[]"
      replaced with your own identifying information. (Don't include
      the brackets!)  The text should be enclosed in the appropriate
      comment syntax for the file format. We also recommend that a
      file or class name and description of purpose be included on the
      same "printed page" as the copyright notice for easier
      identification within third-party archives.

   Copyright 2024 SendAI

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.



# Mega AI Hub resource metadata

Creator / publisher: dattb-birdeye
Original project: https://github.com/dattb-birdeye/skills/blob/d008eac5e9b05ce18b6b193d3df05fd0b93653a0/skills/ct-alpha/SKILL.md
Attribution basis: Source repository record

Fields of work: Marketing
Roles: Content Marketer, Growth Marketer, Influencer Marketer, Marketing Analyst, Product Marketer
Specialties: API
Tools: X Api
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: c310a57b1a6cc2dbcd29d161d2b7857c382d739ce39cdbf694645e99281ae811
