mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-02 10:44:52 +01:00
## Thinking Path > - Paperclip is the open source app people use to manage AI agents for work > - App connectors let agents interact with external tools, suites, REST APIs, and chat channels under instance governance > - `doc/connections/CONNECTOR-PLAYBOOK.md` grew to 2,968 lines (171 KB) and accumulated stale guidance on `rest_api` adapters and setup UX, with no upfront research-and-interview gate to aim new connectors at user expectations > - An autonomous agent cannot reliably build a new connector in one command when the playbook mixes every track together and defaults blindly to remote MCP > - This pull request splits the playbook into a concise router plus six load-on-demand track guides and adds the `.agents/skills/create-connector` skill > - The benefit is that agents and contributors audit official vendor docs up front, recommend the right architecture track, and load only the guidance needed for that connector ## Linked Issues or Issue Description **Issue type** Outdated (no longer matches behavior) **Where is the issue?** `doc/connections/CONNECTOR-PLAYBOOK.md`, `doc/connections/README.md`, `.agents/skills/create-connector/` **What's wrong?** `doc/connections/CONNECTOR-PLAYBOOK.md` was a 2,968-line monolith that still claimed `rest_api` is not exposed through the gateway (despite `rest-registry.ts`, `browser-use-cloud`, and `google-workspace-rest-tools`), contradicted itself on one-screen setup vs. a two-step Access → Connect flow, and jumped straight into MCP endpoint probing without an official-docs feasibility audit or product alignment interview. **Suggested fix** Refactor `CONNECTOR-PLAYBOOK.md` into a short canonical router + universal invariants contract, move track-specific details into `doc/connections/tracks/`, and add `.agents/skills/create-connector/` with a mandatory Research-First → Proactive Recommendation & Interview gate. ## What Changed - Refactored `doc/connections/CONNECTOR-PLAYBOOK.md` from 2,968 lines to 184 lines (Phase 0 official-docs feasibility audit & interview, 6-track selection matrix, universal invariants, canonical one-screen setup UX, production validation matrix, preserved inbound anchors). - Created six focused track guides and one deep reference under `doc/connections/tracks/`: - `remote-mcp.md` (Track A) - `rest-adapter.md` (Track B) - `managed-oauth-suite.md` (Track C) - `connector-skills.md` (Track D) - `chat-channel.md` (Track E) - `local-and-aggregators.md` (Track F) - `app-definition-reference.md` (field reference, troubleshooting, provider attribution, proposal template) - Added `.agents/skills/create-connector/SKILL.md` and `.agents/skills/create-connector/brief-template.md` implementing the one-command connector workflow with three explicit human Stop Gates. - Updated `doc/connections/README.md` to link the modular playbook, track guides, and `create-connector` skill. ## Verification - Verified all relative markdown links across all 11 created/modified files resolve to existing files with zero broken links. - Verified `git diff --check` passes cleanly on all modified and added files. - Confirmed all existing inbound anchors to `CONNECTOR-PLAYBOOK.md` (`#step-9-align-with-production-validation`, `#chat-channel-connectors`, `#question-experience-inventory`, `#retain-inspectable-per-format-evidence`) remain intact. ## Risks - Low risk: documentation and agent-skill changes only; no runtime, schema, or UI code is modified. ## Model Used - Google Gemini (Antigravity agentic coding assistant, tool use and code execution enabled) ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes #` / `Refs #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs) - [x] My branch name describes the change (e.g. `docs/...`, `fix/...`) and contains no internal Paperclip ticket id or instance-derived details - [x] I have run tests locally and they pass - [x] I have added or updated tests where applicable - [x] I have updated relevant documentation to reflect my changes - [x] I have considered and documented any risks above - [ ] All Paperclip CI gates are green - [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups - [x] I will address all Greptile and reviewer comments before requesting merge --------- Co-authored-by: Paperclip <noreply@paperclip.ing>