From hn-submit
Submits a URL and title to Hacker News via Playwright MCP browser automation. Use when the user wants to post or share content on HN.
How this skill is triggered — by the user, by Claude, or both
Slash command
/hn-submit:hn-submitThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Automates posting content to Hacker News using the Playwright MCP browser tools.
Automates posting content to Hacker News using the Playwright MCP browser tools.
This plugin requires the Playwright MCP server to be installed and configured.
Install browsers:
npx playwright install
Add to your Claude Code MCP config (~/.claude/claude_desktop_config.json or project-level .mcp.json):
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["@playwright/mcp@latest"]
}
}
}
See https://github.com/microsoft/playwright-mcp for full setup instructions.
Credentials come from environment variables. Before using this plugin, ensure these are set:
HN_USERNAME — Hacker News usernameHN_PASSWORD — Hacker News passwordOne-time setup:
.socials file in the project root (add it to .gitignore)HN_USERNAME=your_hn_username
HN_PASSWORD=your_hn_password
export HN_USERNAME=... HN_PASSWORD=...If the env vars are not set, ask the user for their HN credentials before proceeding. Do NOT hardcode credentials anywhere.
You need two things from the user:
If either is unclear, ask the user before proceeding.
Read HN_USERNAME and HN_PASSWORD from environment:
echo $HN_USERNAME
echo $HN_PASSWORD
If blank, check for a .socials file:
grep -E "^HN_(USERNAME|PASSWORD)=" .socials 2>/dev/null
If still not found, ask the user to provide them.
https://news.ycombinator.com/loginacct field with the usernamepw field with the password<input type="submit" value="login">)https://news.ycombinator.com/submittitle field with the submission titleurl field with the URL (leave text blank — per HN guidelines, text is optional when a URL is provided)After submission, tell the user:
text field blank when posting a URL (per HN norms).Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub aviskaar/claude-socials --plugin hn-submit