How to Choose the Right Skills for an AI Agent: A Selection Methodology and a Guide to Evaluation Leaderboards

    Choosing which skills to install on an AI Agent is less about how powerful each skill is and more about task distribution, runtime boundaries, and acceptable failure costs. This article explains how to build a capability layer map, how to interpret usage rate and success rate metrics, five questions to assess the credibility of public leaderboards, and a four-step selection loop: task profiling, a minimal viable skill set, gray-release A/B testing, and periodic retirement. It also covers common engineering practices for browser and web automation, a private skill registry as an operable asset, and security and compliance red lines.

    1. The Real Problem: More Skills Is Not Better

    The question “which skills should an Agent have so that nothing is wasted” is essentially the same as “which dependency libraries should a software project adopt.” The answer does not depend on how strong a skill is on its own, but on three things: the task distribution, the boundaries of the runtime environment, and the acceptable cost of failure.

    A common mistake in these discussions is treating a skill list as a capability list. In practice, a skill is usually just a structured capability description plus an invocation contract; it does not automatically deliver reliability. Every skill you add introduces three kinds of hidden cost:

    • Context cost: skill descriptions consume a limited context window. Too many entries dilute instruction attention, causing missed invocations when a skill should be called and wrong invocations when it should not.
    • Routing cost: the more optional skills there are, the more ambiguous intent recognition and skill selection become, and the probability of wrong routing rises.
    • Maintenance cost: external page structure changes, expired login sessions, and API rate limits can all make a skill that worked yesterday fail silently today.

    So the right goal is not “cover every scenario,” but to maximize expected success rate minus expected cost under a given task distribution.

    2. Capability Layers: Build a Skill Map Before Ranking

    Comparing all skills in a single leaderboard is the main reason selection fails. A more reasonable approach is to establish capability layers first, then compare within each layer.

    1. Information acquisition layer: reading web page content, dynamic rendering, session-based access, batch collection. The core difficulties are dynamic loading and permission boundaries.
    2. Interaction layer: form filling, clicking, scrolling, multi-tab management. The core difficulties are locator stability and side-effect control.
    3. Computation and file layer: data processing, format conversion, batch renaming, structured extraction.
    4. Orchestration and scheduling layer: scheduled triggers, event-driven execution, failure retries, result distribution.
    5. Governance layer: permission declarations, audit logs, redaction, quotas, and circuit breaking.

    Comparison only makes sense within the same layer. Ranking “browser automation” against “spreadsheet processing” on one list by usage rate produces noise, not conclusions.

    3. Metric Definitions: What Usage Rate and Success Rate Actually Mean

    When a directory site ranks skills by usage rate and success rate, both metrics need clear definitions. The commonly accepted conventions in the industry are roughly:

    • Usage rate: the share of actual invocations of a skill among all candidate skill invocations; or the share of users who have the skill installed in which it is actually triggered. The two can lead to completely opposite conclusions, so check whether the listing page states which convention it uses.
    • Success rate: the share of invocations that return the expected structure and pass validation. Distinguish three meanings: “HTTP succeeded,” “the flow ran to completion,” and “the result is correct.” Many leaderboards only count the first.
    • First-pass rate: the share completed without human intervention, which is closer to real experience than success rate.
    • Average retry count and fallback rate: reflect how robust a skill is against page redesigns, rate limiting, and expired sessions.
    • P95 latency and cost per task: determine whether a skill can enter a scheduled batch pipeline.

    A practical rule: a leaderboard that publishes only success rate has limited reference value; one that also publishes sample size, time window, and the distribution of failure reasons is worth trusting.

    4. Trustworthiness of Evaluation Data: Five Screening Questions

    For any page that claims to rank skills “by usage rate and success rate,” ask the following in order:

    1. What is the sample size and how long is the statistical window? A ranking based on a tiny sample has no statistical meaning.
    2. Does the success rate include human fallback? Including it or not can differ by tens of percentage points.
    3. Are task types distinguished? Success rates for pages behind a login and for public pages cannot be pooled together.
    4. Are failure reasons published by category? Timeouts, stale selectors, insufficient permissions, and rate limiting call for completely different fixes.
    5. Can the ranking be influenced by payment? Lists with paid placements or submission slots need cross-verification.

    If these questions cannot be answered, treat the leaderboard as an entry point for discovering candidate skills, not as a basis for decisions.

    5. A Selection Methodology: A Four-Step Loop

    Step 1: Profile the tasks. Sample the real requests of the past two weeks, cluster them by scenario, and annotate each cluster with frequency, latency tolerance, and failure cost. Scenarios with high failure cost (such as submissions, payments, or public releases) should require human confirmation by default.

    Step 2: Build a minimal viable set. Install only the governance layer and the single most frequent information acquisition skill, get an end-to-end run working, then add more gradually. Each time you add a skill, watch whether routing accuracy drops.

    Step 3: Gray release and control comparison. Run an A/B test on a fixed evaluation set (30–50 real tasks is a reasonable size), comparing first-pass rate and average retry count rather than judging whether things merely look “smarter.”

    Step 4: Retire on a schedule. Set a monthly review and take offline any skill with no invocations in a row or a significant drop in success rate. The skill set should keep slimming down like a dependency list.

    A sample evaluation record could look like this:

    1. {
    2. "skill": "web_dynamic_read",
    3. "layer": "information",
    4. "sample_size": 42,
    5. "window_days": 14,
    6. "success_rate": 0.83,
    7. "first_pass_rate": 0.71,
    8. "p95_latency_ms": 6200,
    9. "fail_reasons": {"selector_stale": 4, "timeout": 2, "auth_expired": 1},
    10. "human_fallback": false
    11. }

    6. Engineering Essentials for Browser and Web Automation

    The source material emphasizes “letting the Agent access web pages like a real person.” Once specific products are stripped away, this reduces to three general technical approaches:

    • Headless browser scripting: drive a browser through a standard automation protocol to open pages, scroll, click, expand and collapse elements, take screenshots, and fill forms. The advantage is a clean environment and easy parallelism; the difficulties are timing waits for dynamic content and locator stability. Prefer “accessibility role + text anchors” over fragile hierarchical paths, and explicitly wait for key elements to appear.
    • Remote debugging channel that reuses a local session: connect to a browser instance the user is already logged into and inherit the existing session, which allows access to pages behind a permission wall. This is technically feasible but carries significant risk: it shares cookies and identity, so you must restrict accessible domains, prohibit write operations in background tabs, and keep a complete audit trail. It is not recommended for bypassing anti-bot measures or anything that violates terms of service; the account holder bears responsibility for bans and data leaks.
    • Collection-oriented batch scraping: aimed at scheduled jobs, emphasizing concurrency control, incremental deduplication, and structured persistence. Engineering practice should respect the target site’s access frequency conventions, apply backoff retries, write raw artifacts to object storage, and deliver structured results to a message queue for downstream consumers.

    Reliability practices common to all three include: observable failures (structured logs plus monitoring alerts), idempotent design (repeated execution produces no duplicate side effects), and redacting sensitive fields before persistence.

    7. Building a Private Directory: Turning Rankings into an Operable Asset

    When public leaderboards cannot be fully trusted, a safer option is to maintain an internal skill registry with fields for capability layer, applicable scenarios, permission declarations, evaluation metrics, owner, and review date. It can be a simple table, or it can be wired to logging and monitoring services to refresh metrics automatically.

    On the cloud, this usually only requires general-purpose capabilities: a container platform to host headless browser instances, object storage for screenshots and raw artifacts, a message queue for task decoupling, logging and monitoring for observability, and key management to hold credentials. If you use the relevant general capabilities from Baidu AI Cloud, it is still advisable to keep the same layering and least-privilege principle, and avoid injecting high-privilege credentials directly into the Agent runtime environment.

    8. Security and Compliance Red Lines

    • Least privilege: a skill requests only the domains and operation scope required to complete its task.
    • Human in the loop: write operations, public releases, and actions involving money require explicit confirmation.
    • Rollback capability: design undo paths or snapshot mechanisms for side-effecting operations.
    • Compliance first: do not collect personal information, do not bypass access controls, do not violate the target site’s terms.
    • Credential isolation: sessions are used only inside controlled instances and destroyed when the task ends.

    9. Conclusion

    There is no universal answer to “which skills are worth installing,” but there is a universal method: layer first, then define metrics, then validate with a small-sample gray release, and finally establish a retirement mechanism. Public usage rate and success rate leaderboards are suitable for discovering candidates, not for making decisions directly; a genuinely reliable ranking comes from measured data on your own task distribution. Treat the skill set as an engineering asset that needs continuous governance, and the Agent’s stability will rise over time rather than decline.