pre-impl-discussion

pre-impl-discussion is a skill for Claude Code, Codex from alibaba/page-agent. It costs 59 tokens per session (1,032 once invoked), scanned A, original, MIT.

A guided conversation for examining and planning a major code change before any coding starts.

In plain words
What is it for?
Use it to discuss, evaluate, or plan a significant change, especially when requirements or the best approach are uncertain.
Why use it?
It helps avoid implementing the wrong solution by clarifying the current system, constraints, alternatives, and final plan with the user first.

Skill for Claude CodeCodex

About the project

Page Agent is a JavaScript library that embeds a natural-language agent inside a web page and lets it operate the page through its text-based DOM. It is used for web copilots, form filling, accessibility, and browser workflows, while the catalogue entries provide agent skills and instructions for using it.

alibaba/page-agent · 28,986 stars · on GitHub · alibaba.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/alibaba/page-agent/pre-impl-discussion
Any agent
npx skills add alibaba/page-agent --skill pre-impl-discussion
Clone the repo
git clone --depth 1 https://github.com/alibaba/page-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pre-impl-discussion

README.md
[![agentmods](https://agentmods.dev/badge/skills/alibaba/page-agent/pre-impl-discussion.svg)](https://agentmods.dev/skills/alibaba/page-agent/pre-impl-discussion)
Your own site
<a href="https://agentmods.dev/skills/alibaba/page-agent/pre-impl-discussion"><img src="https://agentmods.dev/badge/skills/alibaba/page-agent/pre-impl-discussion.svg" alt="Measured on agentmods" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,032 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00059 $0.01032
Opus 5 $0.00030 $0.00516
Sonnet 5 $0.00012 $0.00206
Haiku 4.5 $0.00006 $0.00103

Measured 6d ago against content hash a1e569065a2f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

pre-impl-discussion scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/pre-impl-discussion/SKILL.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pre-Implementation Discussion

Facilitate a structured, collaborative discussion to evaluate a proposed change before any implementation begins.

Golden Rule

Do NOT implement anything until the user explicitly confirms the final plan and says to proceed. Not even "let me try on a branch" — that's implementation. The user will tell you when discussion is over.

Interaction Style

  • Concise during discussion. Each intermediate response should be short and focused on the current question. Do NOT repeat the full plan in every response.
  • Complete when finalizing. Once the plan is mature and the user asks for it, present a single comprehensive (but terse) summary for final review.
  • Ask, don't assume. When uncertain about project context, constraints, or preferences — ask. The user prefers collaborative discussion over receiving a pre-baked answer.
  • Challenge the premise. Question whether the proposed change is the right one. Suggest simpler alternatives if they exist.
  • Match the user's language. Reply in the same language the user writes in.

Procedure

1. Understand the Current State

Before forming any opinion:

  • Read the relevant source files — configs, code, docs that relate to the change
  • Understand the project structure — what's published vs private, what environments things target, existing constraints
  • Map the impact surface — which files, packages, or systems would be affected
  • Estimate implementation cost — how many files to touch, how much config to rewrite, what could break

Do NOT skip this step. Do NOT rely on assumptions about what "most projects" do.

2. Research Thoroughly

  • Consult official sources — docs, changelogs, migration guides, GitHub issues
  • Verify every claim with evidence. Don't say "X supports Y" without a source. If unsure, say so.
  • Search in parallel to save time — batch independent queries

Common pitfalls:

  • Assuming compatibility without checking actual version constraints
  • Confusing roadmap/aspirations with actual released state
  • Missing transitive constraints (a dependency of a dependency)

Read the full file on GitHub · 105 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 105 lines · 59 tokens per session scan A a1e569065a2f

Subscribe to this mod's changes

pre-impl-discussion is a skill published in the GitHub repository alibaba/page-agent (28,986 stars, last pushed 2d ago), licensed MIT. It adds 59 tokens to every session and 1,032 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories