hence-search
npx skills add https://github.com/hence-sh/hence-search --skill hence-search
Agent 安装分布
Skill 文档
Hence Search
Search the Hence gallery to find projects and draw inspiration from what others are building with AI.
Workflow
0. Authenticate
Check for existing credentials. If none found, start the device flow:
python scripts/auth.py --check
If the check fails, run the device flow:
python scripts/auth.py
The script will print a URL and a one-time code. Before running the command, tell the user they’ll need to:
- Open the URL in their browser
- Log in to Hence if they aren’t already (via GitHub or Google)
- Enter the code shown in the terminal
The script will wait and automatically complete once the user approves. No further action is needed from the agent after that.
For CI/CD environments, pass an API key directly:
python scripts/auth.py <api-key>
1. Determine search strategy
- Specific query (e.g. “Rust CLI tools”): run
search.pydirectly with keywords. - Broad browsing (e.g. “show me cool stuff”): run
fetch_metadata.py topicsfirst, suggest 3â5 relevant categories, then search by topic.
2. Execute search
python scripts/search.py "productivity cli"
python scripts/search.py "" --topic game --limit 10
python scripts/search.py "dashboard" --topic react --offset 20
For valid topic slugs:
python scripts/fetch_metadata.py topics
Pass --json to either script for raw JSON output when further processing is needed.
3. Present results
For each project include:
- Title and pitch â the name and one-liner
- Built with â agent/model if available
- Link â
https://hence.sh/p/<id>
4. Connect inspiration
After showing results, ask: “Does any of this spark ideas for your current build?”
If the user identifies a project as inspiring, store its ID and title via save_memory so the hence-share skill can suggest an “Inspired by” link later.
5. Paginate
If results are truncated, offer to load more by incrementing --offset.
API details
See references/api.md for full endpoint documentation, response schemas, and available metadata endpoints.