RentHub Documentation

website·Indexed 31 days ago

https://docs.renthub.cloud

Comprehensive technical and product documentation for RentHub, featuring API specifications for order management, assets, disputes, and insurance; UI design standards for WeChat Mini Programs, admin panels, and the official website; and development guides covering CloudBase, GitHub Actions, and Cursor-based AI workflows.

Tokens
65.9K
Snippets
399
Records
559
Agent score
52%

What's inside RentHub

  1. Overview of RentHub Development Knowledge Base

    The RentHub development knowledge base provides foundational technical guidance on the cloud services, frameworks, and tools used in the project. It is designed for developers to understand the 'what', 'why', and 'how' of the following core areas:

    • WeChat Mini Program Development: Covers account/AppID setup, developer tool installation, project importing, and engineering structure.
    • Tencent CloudBase: Covers the five core capabilities: Document Database, Cloud Functions, Cloud Hosting, Cloud Storage, and Authentication.
    • Modern JavaScript (ES6+): Covers essential syntax including variables, destructuring, arrow functions, Promise/async patterns, and optional chaining.
  2. Overview of the scheduler cloud function

    The scheduler cloud function handles background maintenance tasks including statistics updates, automatic order acceptance, and cleanup of dormant or defaulting accounts. It is typically invoked via cloud development timers or administrative callFunction requests and is not intended for direct frontend calls. The specific task to execute is determined by the event.action parameter.
  3. Overview of RentHub Backend Architecture with CloudBase

    RentHub's backend is entirely hosted on Tencent CloudBase, a serverless platform that integrates database, functions, hosting, storage, and authentication. The frontend (WeChat Mini Program) interacts with these services directly via the wx.cloud SDK, eliminating the need for a traditional standalone API server.
  4. Overview of the Dispute Resolution Mechanism

    RentHub implements a four-level dispute resolution process designed to minimize manual customer service intervention by digitizing offline workflows:

    • L1: Negotiation (协商和解): Zero intervention. Parties resolve issues via structured settlement plans and auto-generated agreements.
    • L2: Platform Mediation (平台调解): Mediator intervention. Applicable for amounts ≤ 10,000 CNY; free of charge.
    • L3: Arbitration/Litigation Guidance (仲裁/诉讼指引): Zero intervention. The platform provides arbitration agency info and electronic templates; the actual process occurs externally.
    • L4: Platform Execution (平台执行): Automated. Automatic deductions from wallets/deposits and credit penalties.

    Entry Points:

    • Order Page ('Report Problem'): For user_to_user disputes (available in Pending Receipt, Renting, or Pending Return states).
    • Profile Page ('Report Problem'): For both user_to_user (requires order association) and user_to_platform disputes.
  5. Understand the Credit Rating and New User system

    RentHub uses a star-based credit system (up to 5.0 stars) which affects deposit ratios and exposure weight. New users enter a 'Breaking Ground Plan' (破土计划) for their first 3 orders, characterized by higher initial deposit ratios that decrease over time. Completing this phase grants wallet and experience rewards.
  6. RentHub Product Positioning and Value Proposition

    RentHub is a light-asset service platform designed for merchants (lessors) and renters (lessees). It provides intermediary services including information publishing, transaction matching, payment settlement, logistics coordination, and dispute resolution. The business focuses on B2B and C2C item and industrial equipment rentals, with a current primary focus on C2C campus rentals. The primary user interface is a WeChat Mini Program, supported by a Web management backend and an official website.
  7. RentHub Product Domain Overview

    RentHub is a light-asset service platform focusing on B2B and C2C leasing of goods and industrial equipment (currently primarily C2C).

    Key Terminology:

    • Tenant (Lessee): The party renting the item.
    • Merchant (Lessor): The party providing the item for rent (includes individual sellers in C2C contexts).
  8. Install and manage Agent Skills using npx skills

    The skills CLI (from vercel-labs/skills) provides a unified interface to install, discover, update, and uninstall Agent Skills across multiple AI agents (e.g., Cursor, Claude Code, Codex, OpenCode). It eliminates the need to manually copy SKILL.md files into agent-specific directories like .agents/skills/ or .claude/skills/.

    It is recommended to use npx to ensure the latest version of the CLI is used without requiring a global installation.

    # Basic installation of a skill set
    npx skills add vercel-labs/agent-skills
    
    # Temporary use of a skill (pipes the prompt to the agent)
    npx skills use vercel-labs/agent-skills@web-design-guidelines | claude
  9. Understand Git core concepts

    Git is a version control system that records every change, supports multi-person collaboration, and allows reverting to any historical version. Key concepts include:

    • Repository (repo): A folder managed by Git containing project code and history. Can be Local (on your machine) or Remote (shared on platforms like GitHub).
    • Commit: A snapshot of the project at a specific point in time, containing changes, timestamp, author, and a commit message.
    • Branch: An independent line of development. The default is usually main, but new branches can be created for features to avoid affecting the main line.
    • Merge: Combining changes from one branch into another. If the same line was modified in both, a conflict occurs and requires manual resolution.
    • Remote: An alias for a remote repository (default is origin).
    • Pull Request (PR): A GitHub/GitLab mechanism for requesting a merge. It provides a space for code review, discussion, and quality assurance before code is merged into a target branch.
  10. RentHub Project Management Documentation Map

    The project management section provides guidance on the following areas:

    • Git Basics: Version control, branching, commits, and remote operations.
    • Team Collaboration: Best practices for branching, commits, and Code Review in modern IDE + AI environments.
    • GitHub Actions: CI/CD core concepts and detailed documentation site deployment workflows.
    • Business Repository Workflow: Monorepo directory conventions for Mini Programs and Cloud Functions, including test commands, Sonar, Build CI, and end-to-end release pipelines.
  11. Retrieve chat session information

    Use the getChatInfo action in the message cloud function to get details about a specific chat session. Request parameters follow the general convention (e.g., chatId).
    {
      "action": "getChatInfo",
      "data": {}
    }
  12. Implement an Agent Harness for reliable software delivery

    An Agent Harness is a set of engineering facilities surrounding an AI model to convert probabilistic outputs into deterministic, executable, and verifiable work. It prevents tasks from failing due to loss of context across multiple chat sessions or lack of verification. A complete harness manages four key areas: direction constraints (Rules, Skills), actual execution (git, npm, build tools), state persistence (branches, commit history, progress files), and feedback loops (build logs, reviews).