Handler Auth Flow
Developmenthandler-auth-flowHandler Auth Flow is an Agent Skill for development published in the fossasia/visdom repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Add or modify Tornado handlers safely with auth, route ordering, and shared state conventions
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/fossasia/visdom/blob/HEAD/.agents/skills/handler-auth-flow/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/handler-auth-flow, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Skill: Handler and Auth Flow
When to Use
Use this skill when changing py/visdom/server/handlers/ or server routes.
Core Workflow
- Implement or modify handler classes in
web_handlers.pyorsocket_handlers.py. - Keep
@check_authon protected handler methods. - In handler
initialize(), copy required app attributes (do not refactor toself.app). - Register routes in
py/visdom/server/app.pybefore fallback/index catch-alls. - Ensure both WebSocket and polling flows behave consistently.
- Confirm browser-facing commands and payload keys remain stable.
Guardrails
- Missing
@check_authis an auth bypass. - Keep environment access sanitized and scoped to
env_path. - Avoid silent failure paths in handlers.
Documentation
- Skill reference
py/visdom/server/app.pypy/visdom/server/handlers/web_handlers.pypy/visdom/server/handlers/socket_handlers.pypy/visdom/server/handlers/base_handlers.pyAGENTS.mdCONTRIBUTING.md
Assets
- See
assets/README.mdand store templates/resources inassets/.
Tests
- Follow the default flow in
references/TESTS.md.